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

Source Code for Module phones.com_sanyo200

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2006 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$ 
 9   
10  """Talk to the Sanyo VI-2300 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo200 
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 SCP-200 cell phone" 28 29 desc="SCP-200" 30 31 FIRST_MEDIA_DIRECTORY=1 32 LAST_MEDIA_DIRECTORY=1 33 34 imagelocations=( 35 # offset, directory #, indexflag, type, maximumentries 36 ) 37 38 protocolclass=p_sanyo200 39 serialsname='scp200' 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-200/US' 63 64 WALLPAPER_WIDTH=128 65 WALLPAPER_HEIGHT=112 66 OVERSIZE_PERCENTAGE=100 67 68 _supportedsyncs=( 69 ('phonebook', 'read', None), # all phonebook reading 70 ('calendar', 'read', None), # all calendar reading 71 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 72 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 73 ('call_history', 'read', None),# all call history list reading 74 ('sms', 'read', None), # Read sms messages 75 ('todo', 'read', None), # Read todos 76 ) 77
78 - def __init__(self):
81