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

Source Code for Module phones.com_sanyo7400

 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_sanyo7400.py 2632 2005-11-17 04:57:55Z sawecw $ 
 9   
10  """Talk to the Sanyo MM-7400 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo7400 
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-7400 cell phone" 27 28 desc="MM-7400" 29 protocolclass=p_sanyo7400 30 serialsname='mm7400' 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', 'Ringer & Voice', '', '', '', '', '', '', 40 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 41 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 42 '', '', '', '', '', '', '', 43 'Tschaik.Swanlake', 'Satie Gymnop.#1', 44 'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves', 45 'Foster Ky. Home', 'The Moment', 'Asian Jingle', 46 'Disco') 47 48 calendar_defaultringtone=0 49 calendar_defaultcaringtone=0 50
51 - def __init__(self, logtarget, commport):
52 com_sanyonewer.Phone.__init__(self, logtarget, commport) 53 self.mode=self.MODENONE 54 self.numbertypetab=numbertypetab
55
56 -class Profile(com_sanyonewer.Profile):
57 58 protocolclass=Phone.protocolclass 59 serialsname=Phone.serialsname 60 phone_manufacturer='SANYO' 61 phone_model='SCP-7400/US' 62 63 WALLPAPER_WIDTH=176 64 WALLPAPER_HEIGHT=220 65 66 _supportedsyncs=( 67 ('phonebook', 'read', None), # all phonebook reading 68 ('calendar', 'read', None), # all calendar reading 69 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 70 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 71 ('wallpaper', 'write', 'MERGE'), 72 ('ringtone', 'write', 'MERGE'), 73 ('wallpaper', 'read', None), # all wallpaper reading 74 ('ringtone', 'read', None), # all ringtone reading 75 ) 76
77 - def __init__(self):
80