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 VI-2300 cell phone""" 0011 0012 # my modules 0013 import common 0014 import p_sanyo200 0015 import com_brew 0016 import com_phone 0017 import com_sanyo 0018 import com_sanyomedia 0019 import com_sanyonewer 0020 import prototypes 0021 0022 # Order is like the PM-8200 0023 numbertypetab=( 'cell', 'home', 'office', 'pager', 0024 'fax', 'data', 'none' ) 0025 0026 class Phone(com_sanyonewer.Phone): 0027 "Talk to the Sanyo SCP-200 cell phone" 0028 0029 desc="SCP-200" 0030 0031 FIRST_MEDIA_DIRECTORY=1 0032 LAST_MEDIA_DIRECTORY=1 0033 0034 imagelocations=( 0035 # offset, directory #, indexflag, type, maximumentries 0036 ) 0037 0038 protocolclass=p_sanyo200 0039 serialsname='scp200' 0040 0041 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 0042 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 0043 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 0044 '', '', '', '', '', '', '', 0045 'Gymnopedie', 'Hungarian Dance No. 5', 0046 'Dies Irae from Requiem', 'The Moment', 'Asian Jingle', 0047 'Habanera', 'Ska Big Band', 'Asian Melody', 0048 'Clair de Lune', 'Kung-fu') 0049 0050 calendar_defaultringtone=4 0051 0052 def __init__(self, logtarget, commport): 0053 com_sanyonewer.Phone.__init__(self, logtarget, commport) 0054 self.mode=self.MODENONE 0055 self.numbertypetab=numbertypetab 0056 0057 class Profile(com_sanyonewer.Profile): 0058 0059 protocolclass=Phone.protocolclass 0060 serialsname=Phone.serialsname 0061 phone_manufacturer='SANYO' 0062 phone_model='SCP-200/US' 0063 0064 WALLPAPER_WIDTH=128 0065 WALLPAPER_HEIGHT=112 0066 OVERSIZE_PERCENTAGE=100 0067 0068 _supportedsyncs=( 0069 ('phonebook', 'read', None), # all phonebook reading 0070 ('calendar', 'read', None), # all calendar reading 0071 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0072 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0073 ('call_history', 'read', None),# all call history list reading 0074 ('sms', 'read', None), # Read sms messages 0075 ('todo', 'read', None), # Read todos 0076 ) 0077 0078 def __init__(self): 0079 com_sanyonewer.Profile.__init__(self) 0080 self.numbertypetab=numbertypetab 0081
Generated by PyXR 0.9.4