Package phones :: Module com_sanyo4920
[hide private]
[frames] | no frames]

Source Code for Module phones.com_sanyo4920

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2004 Stephen Wood <sawecw@users.sf.net> 
 4  ### 
 5  ### This program is free software; you can redistribute it and/or modify 
 6  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 7  ### 
 8  ### $Id: com_sanyo4920.py 4302 2007-07-11 04:03:57Z sawecw $ 
 9   
10  """Talk to the Sanyo RL-4920 cell phone""" 
11   
12  # Phone has 50 minute digital voice memo recorder. 
13  # Sanyo description says recordings can be downloaded to PC using 
14  # data cable. 
15   
16  # my modules 
17  import common 
18  import p_sanyo4920 
19  import com_brew 
20  import com_phone 
21  import com_sanyo 
22  import com_sanyomedia 
23  import com_sanyonewer 
24  import prototypes 
25   
26  # Order is like the PM-8200 
27  numbertypetab=( 'cell', 'home', 'office', 'pager', 
28                      'fax', 'data', 'none' ) 
29   
30 -class Phone(com_sanyonewer.Phone):
31 "Talk to the Sanyo RL-4920 cell phone" 32 33 desc="SCP-4920" 34 35 FIRST_MEDIA_DIRECTORY=2 36 LAST_MEDIA_DIRECTORY=3 37 38 imagelocations=( 39 # offset, directory #, indexflag, type, maximumentries 40 ) 41 42 protocolclass=p_sanyo4920 43 serialsname='rl4920' 44 45 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 46 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 47 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 48 '', '', '', '', '', '', '', 49 'Tschaik.Swanlake', 'Satie Gymnop.#1', 50 'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves', 51 'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle', 52 'Disco', 'Toy Box', 'Rodeo' ) 53 54 calendar_defaultringtone=4 55
56 - def __init__(self, logtarget, commport):
57 com_sanyonewer.Phone.__init__(self, logtarget, commport) 58 self.mode=self.MODENONE 59 self.numbertypetab=numbertypetab
60
61 -class Profile(com_sanyonewer.Profile):
62 63 protocolclass=Phone.protocolclass 64 serialsname=Phone.serialsname 65 phone_manufacturer='SANYO' 66 phone_model='SCP-4920/US' 67 68 WALLPAPER_WIDTH=128 69 WALLPAPER_HEIGHT=112 70 OVERSIZE_PERCENTAGE=100 71
72 - def __init__(self):
75