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

Source Code for Module phones.com_sanyo2400

 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 SCP-2400 cell phone""" 
11  # standard modules 
12  import re 
13  import time 
14  import sha 
15   
16  # my modules 
17  import common 
18  import p_brew 
19  import p_sanyo8300 
20  import p_sanyo2400 
21  import com_brew 
22  import com_phone 
23  import com_sanyo 
24  import com_sanyomedia 
25  import com_sanyonewer 
26  import com_sanyo3100 
27  import prototypes 
28  import bpcalendar 
29   
30  numbertypetab=( 'cell', 'home', 'office', 'pager', 
31                      'fax', 'data', 'none' ) 
32   
33 -class Phone(com_sanyo3100.Phone):
34 "Talk to the Sanyo SCP-2400 cell phone" 35 36 desc="SCP-2400" 37 38 FIRST_MEDIA_DIRECTORY=1 39 LAST_MEDIA_DIRECTORY=2 40 41 imagelocations=( 42 # offset, directory #, indexflag, type, maximumentries 43 ) 44 45 protocolclass=p_sanyo2400 46 serialsname='scp2400' 47 48 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 49 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 50 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 51 '', '', '', '', '', '', '', 52 'Tschaik.Swanlake', 'Satie Gymnop.#1', 53 'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves', 54 'Foster Ky. Home', 'The Moment', 'Asian Jingle', 55 'Disco') 56 57 calendar_defaultringtone=0 58 calendar_defaultcaringtone=0 59
60 - def __init__(self, logtarget, commport):
61 com_sanyo3100.Phone.__init__(self, logtarget, commport) 62 self.mode=self.MODENONE 63 self.numbertypetab=numbertypetab
64 65 my_model='SCP-2400/US' 66 my_manufacturer='SANYO'
67 68 parentprofile=com_sanyo3100.Profile
69 -class Profile(parentprofile):
70 71 protocolclass=Phone.protocolclass 72 serialsname=Phone.serialsname 73 phone_manufacturer=Phone.my_manufacturer 74 phone_model=Phone.my_model 75 76 WALLPAPER_WIDTH=176 77 WALLPAPER_HEIGHT=220 78 79 # which usb ids correspond to us 80 81 _supportedsyncs=( 82 ('phonebook', 'read', None), # all phonebook reading 83 ('calendar', 'read', None), # all calendar reading 84 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 85 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 86 ('wallpaper', 'read', None), # all wallpaper reading 87 ('ringtone', 'read', None), # all ringtone reading 88 ('call_history', 'read', None),# all call history list reading 89 ('sms', 'read', None), # Read sms messages 90 ('todo', 'read', None), # Read todos 91 ) 92
93 - def __init__(self):
94 parentprofile.__init__(self) 95 com_sanyonewer.Profile.__init__(self) 96 self.numbertypetab=numbertypetab
97