0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2006 Stephen Wood <sawecw@users.sf.net> 0004 ### 0005 ### This program is free software; you can redistribute it and/or modify 0006 ### it under the terms of the BitPim license as detailed in the LICENSE file. 0007 ### 0008 ### $Id$ 0009 0010 """Talk to the Sanyo SCP-2400 cell phone""" 0011 # standard modules 0012 import re 0013 import time 0014 import sha 0015 0016 # my modules 0017 import common 0018 import p_brew 0019 import p_sanyo8300 0020 import p_sanyo2400 0021 import com_brew 0022 import com_phone 0023 import com_sanyo 0024 import com_sanyomedia 0025 import com_sanyonewer 0026 import com_sanyo3100 0027 import prototypes 0028 import bpcalendar 0029 0030 numbertypetab=( 'cell', 'home', 'office', 'pager', 0031 'fax', 'data', 'none' ) 0032 0033 class Phone(com_sanyo3100.Phone): 0034 "Talk to the Sanyo SCP-2400 cell phone" 0035 0036 desc="SCP-2400" 0037 0038 FIRST_MEDIA_DIRECTORY=1 0039 LAST_MEDIA_DIRECTORY=2 0040 0041 imagelocations=( 0042 # offset, directory #, indexflag, type, maximumentries 0043 ) 0044 0045 protocolclass=p_sanyo2400 0046 serialsname='scp2400' 0047 0048 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 0049 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 0050 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 0051 '', '', '', '', '', '', '', 0052 'Tschaik.Swanlake', 'Satie Gymnop.#1', 0053 'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves', 0054 'Foster Ky. Home', 'The Moment', 'Asian Jingle', 0055 'Disco') 0056 0057 calendar_defaultringtone=0 0058 calendar_defaultcaringtone=0 0059 0060 def __init__(self, logtarget, commport): 0061 com_sanyo3100.Phone.__init__(self, logtarget, commport) 0062 self.mode=self.MODENONE 0063 self.numbertypetab=numbertypetab 0064 0065 my_model='SCP-2400/US' 0066 my_manufacturer='SANYO' 0067 0068 parentprofile=com_sanyo3100.Profile 0069 class Profile(parentprofile): 0070 0071 protocolclass=Phone.protocolclass 0072 serialsname=Phone.serialsname 0073 phone_manufacturer=Phone.my_manufacturer 0074 phone_model=Phone.my_model 0075 0076 WALLPAPER_WIDTH=176 0077 WALLPAPER_HEIGHT=220 0078 0079 # which usb ids correspond to us 0080 0081 _supportedsyncs=( 0082 ('phonebook', 'read', None), # all phonebook reading 0083 ('calendar', 'read', None), # all calendar reading 0084 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0085 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0086 ('wallpaper', 'read', None), # all wallpaper reading 0087 ('ringtone', 'read', None), # all ringtone reading 0088 ('call_history', 'read', None),# all call history list reading 0089 ('sms', 'read', None), # Read sms messages 0090 ('todo', 'read', None), # Read todos 0091 ) 0092 0093 def __init__(self): 0094 parentprofile.__init__(self) 0095 com_sanyonewer.Profile.__init__(self) 0096 self.numbertypetab=numbertypetab 0097 0098
Generated by PyXR 0.9.4