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

Source Code for Module phones.com_sanyo5600

 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 MM-5600 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo5600 
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  numbertypetab=( 'cell', 'home', 'office', 'pager', 
23                      'fax', 'data', 'none' ) 
24   
25 -class Phone(com_sanyonewer.Phone):
26 "Talk to the Sanyo MM-5600 cell phone" 27 28 desc="MM-5600" 29 protocolclass=p_sanyo5600 30 serialsname='mm5600' 31 32 FIRST_MEDIA_DIRECTORY=1 33 LAST_MEDIA_DIRECTORY=3 34 35 imagelocations=( 36 # offset, directory #, indexflag, type, maximumentries 37 ) 38 39 builtinringtones=( 'None', 'Vibrate', 'Voice Alarm', '', '', '', '', '', '', 40 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 41 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 42 '', '', '', '', '', '', '', 43 'Requiem:Dies Irae', 'Minute Waltz', 44 'Hungarian Dance', 'Miltary March', 'Ten Little Indians', 45 'Head,Shoulders,Knees&Toes', 'The Moment', 'Asian Jingle', 46 'Disco') 47 48 calendar_defaultringtone=0 49 calendar_defaultcaringtone=0 50 calendar_voicenumber=56 51 phonebook_voicenumber=3 52
53 - def __init__(self, logtarget, commport):
54 com_sanyonewer.Phone.__init__(self, logtarget, commport) 55 self.mode=self.MODENONE 56 self.numbertypetab=numbertypetab
57
58 -class Profile(com_sanyonewer.Profile):
59 60 protocolclass=Phone.protocolclass 61 serialsname=Phone.serialsname 62 phone_manufacturer='SANYO' 63 phone_model='SCP-5600/US' 64 65 WALLPAPER_WIDTH=176 66 WALLPAPER_HEIGHT=220 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 ('wallpaper', 'write', 'MERGE'), 74 ('ringtone', 'write', 'MERGE'), 75 ('wallpaper', 'read', None), # all wallpaper reading 76 ('ringtone', 'read', None), # all ringtone reading 77 ) 78
79 - def __init__(self):
82