0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2005 Stephen Wood <sawecw@users.sf.net> 0004 ### Copyright (C) 2007 Yan Ke <yke@cmu.edu> 0005 ### 0006 ### This program is free software; you can redistribute it and/or modify 0007 ### it under the terms of the BitPim license as detailed in the LICENSE file. 0008 ### 0009 ### $Id: com_sanyo3200.py 4086 2007-03-11 04:49:43Z yke $ 0010 0011 """Talk to the Sanyo SCP-3200 cell phone""" 0012 # standard modules 0013 import re 0014 import time 0015 import sha 0016 0017 # my modules 0018 import common 0019 import p_brew 0020 import p_sanyo8300 0021 import p_sanyo3200 0022 import com_brew 0023 import com_phone 0024 import com_sanyo 0025 import com_sanyomedia 0026 import com_sanyonewer 0027 import com_sanyo3100 0028 import com_sanyo8300 0029 import prototypes 0030 import bpcalendar 0031 import call_history 0032 0033 numbertypetab=( 'cell', 'home', 'office', 'pager', 0034 'fax', 'data', 'none' ) 0035 0036 class Phone(com_sanyo3100.Phone): 0037 "Talk to the Sanyo SCP-3200 cell phone" 0038 0039 desc="SCP-3200" 0040 # WOrking directories 1,2,4 0041 FIRST_MEDIA_DIRECTORY=1 0042 LAST_MEDIA_DIRECTORY=2 0043 0044 imagelocations=( 0045 # offset, directory #, indexflag, type, maximumentries 0046 ) 0047 0048 protocolclass=p_sanyo3200 0049 serialsname='scp3200' 0050 0051 builtinringtones=( 'None', 'Vibrate', '', '', '', '', '', '', '', 0052 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 0053 'Tone 6', 'Tone 7', 'Tone 8', 0054 '', '', '', '', '', 0055 '', '', '', 0056 '', '', '', '', 0057 'Hungarian Dance No.5', 'Asian Jingle', 0058 'Ska Big Band', 'Habanera', 'Clair de Lune', 0059 'Nocturne', 'Techno Beat', 'Jazz Melody','','','','','','','','','','','','','','','','','','','Ringer & Voice') 0060 0061 calendar_defaultringtone=4 0062 calendar_defaultcaringtone=4 0063 0064 def __init__(self, logtarget, commport): 0065 com_sanyo8300.Phone.__init__(self, logtarget, commport) 0066 self.mode=self.MODENONE 0067 self.numbertypetab=numbertypetab 0068 0069 # Phone Detection----------------------------------------------------------- 0070 my_model='SCP3200' 0071 detected_model='SCP-3200/US' 0072 my_manufacturer='SANYO' 0073 0074 parentprofile=com_sanyo3100.Profile 0075 class Profile(parentprofile): 0076 0077 protocolclass=Phone.protocolclass 0078 serialsname=Phone.serialsname 0079 phone_manufacturer=Phone.my_manufacturer 0080 phone_model=Phone.my_model 0081 0082 _supportedsyncs=( 0083 ('phonebook', 'read', None), # all phonebook reading 0084 ('calendar', 'read', None), # all calendar reading 0085 # ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0086 # ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0087 ('wallpaper', 'read', None), # all wallpaper reading 0088 # ('ringtone', 'read', None), # all ringtone reading 0089 ('call_history', 'read', None),# all call history list reading 0090 # ('sms', 'read', None), # Read sms messages 0091 ('todo', 'read', None), # Read todos 0092 ) 0093 0094 def __init__(self): 0095 parentprofile.__init__(self) 0096 com_sanyonewer.Profile.__init__(self) 0097 self.numbertypetab=numbertypetab 0098
Generated by PyXR 0.9.4