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: com_sanyo7500.py 4598 2008-02-24 04:59:42Z sawecw $ 0009 0010 """Talk to the Sanyo MM-7500 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_sanyo4930 0021 import p_sanyo7500 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 prototypes 0029 import bpcalendar 0030 0031 numbertypetab=( 'cell', 'home', 'office', 'pager', 0032 'fax', 'data', 'none' ) 0033 0034 class Phone(com_sanyo3100.Phone): 0035 "Talk to the Sanyo MM-7500 cell phone" 0036 0037 desc="MM-7500" 0038 0039 FIRST_MEDIA_DIRECTORY=1 0040 LAST_MEDIA_DIRECTORY=3 0041 0042 imagelocations=( 0043 # offset, directory #, indexflag, type, maximumentries 0044 ) 0045 0046 protocolclass=p_sanyo7500 0047 serialsname='mm7500' 0048 0049 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 0050 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 0051 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 0052 '', '', '', '', '', '', '', 0053 'Tschaik.Swanlake', 'Satie Gymnop.#1', 0054 'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves', 0055 'Foster Ky. Home', 'The Moment', 'Asian Jingle', 0056 'Disco') 0057 0058 calendar_defaultringtone=0 0059 calendar_defaultcaringtone=0 0060 0061 def __init__(self, logtarget, commport): 0062 com_sanyo3100.Phone.__init__(self, logtarget, commport) 0063 self.mode=self.MODENONE 0064 self.numbertypetab=numbertypetab 0065 0066 my_model='SCP7500' 0067 detected_model='SCP-7500/US' 0068 my_manufacturer='SANYO' 0069 0070 parentprofile=com_sanyo3100.Profile 0071 class Profile(parentprofile): 0072 0073 protocolclass=Phone.protocolclass 0074 serialsname=Phone.serialsname 0075 phone_manufacturer=Phone.my_manufacturer 0076 phone_model=Phone.my_model 0077 0078 WALLPAPER_WIDTH=176 0079 WALLPAPER_HEIGHT=220 0080 0081 # which usb ids correspond to us 0082 0083 _supportedsyncs=( 0084 ('phonebook', 'read', None), # all phonebook reading 0085 ('calendar', 'read', None), # all calendar reading 0086 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0087 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0088 #('wallpaper', 'write', 'MERGE'), 0089 #('ringtone', 'write', 'MERGE'), 0090 ('wallpaper', 'read', None), # all wallpaper reading 0091 ('ringtone', 'read', None), # all ringtone reading 0092 #('call_history', 'read', None),# all call history list reading 0093 ('sms', 'read', None), # Read sms messages 0094 ('todo', 'read', None), # Read todos 0095 ) 0096 0097 def __init__(self): 0098 parentprofile.__init__(self) 0099 com_sanyonewer.Profile.__init__(self) 0100 self.numbertypetab=numbertypetab 0101 0102
Generated by PyXR 0.9.4