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

Source Code for Module phones.com_sanyo2300

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2005 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_sanyo2300.py 3635 2006-10-29 22:24:19Z sawecw $ 
 9   
10  """Talk to the Sanyo VI-2300 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo2300 
15  import com_brew 
16  import com_phone 
17  import com_sanyo 
18  import com_sanyomedia 
19  import com_sanyonewer 
20  import prototypes 
21   
22  # Order is like the PM-8200 
23  numbertypetab=( 'cell', 'home', 'office', 'pager', 
24                      'fax', 'data', 'none' ) 
25   
26 -class Phone(com_sanyonewer.Phone):
27 "Talk to the Sanyo VI-2300 cell phone" 28 29 desc="SCP-2300" 30 31 FIRST_MEDIA_DIRECTORY=2 32 LAST_MEDIA_DIRECTORY=3 33 34 imagelocations=( 35 # offset, directory #, indexflag, type, maximumentries 36 ) 37 38 protocolclass=p_sanyo2300 39 serialsname='vi2300' 40 41 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 42 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 43 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 44 '', '', '', '', '', '', '', 45 'Gymnopedie', 'Hungarian Dance No. 5', 46 'Dies Irae from Requiem', 'The Moment', 'Asian Jingle', 47 'Habanera', 'Ska Big Band', 'Asian Melody', 48 'Clair de Lune', 'Kung-fu') 49 50 calendar_defaultringtone=4 51
52 - def __init__(self, logtarget, commport):
53 com_sanyonewer.Phone.__init__(self, logtarget, commport) 54 self.mode=self.MODENONE 55 self.numbertypetab=numbertypetab
56
57 -class Profile(com_sanyonewer.Profile):
58 59 protocolclass=Phone.protocolclass 60 serialsname=Phone.serialsname 61 phone_manufacturer='SANYO' 62 phone_model='SCP-2300/US' 63 64 WALLPAPER_WIDTH=128 65 WALLPAPER_HEIGHT=112 66 OVERSIZE_PERCENTAGE=100 67
68 - def __init__(self):
71