PyXR

c:\projects\bitpim\src \ phones \ com_sanyo5600.py



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 MM-5600 cell phone"""
0011 
0012 # my modules
0013 import common
0014 import p_sanyo5600
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 numbertypetab=( 'cell', 'home', 'office', 'pager',
0023                     'fax', 'data', 'none' )
0024 
0025 class Phone(com_sanyonewer.Phone):
0026     "Talk to the Sanyo MM-5600 cell phone"
0027 
0028     desc="MM-5600"
0029     protocolclass=p_sanyo5600
0030     serialsname='mm5600'
0031 
0032     FIRST_MEDIA_DIRECTORY=1
0033     LAST_MEDIA_DIRECTORY=3
0034 
0035     imagelocations=(
0036         # offset, directory #, indexflag, type, maximumentries
0037         )    
0038 
0039     builtinringtones=( 'None', 'Vibrate', 'Voice Alarm', '', '', '', '', '', '', 
0040                        'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
0041                        'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '',
0042                        '', '', '', '', '', '', '',
0043                        'Requiem:Dies Irae', 'Minute Waltz',
0044                        'Hungarian Dance', 'Miltary March', 'Ten Little Indians',
0045                        'Head,Shoulders,Knees&Toes', 'The Moment', 'Asian Jingle',
0046                        'Disco')
0047 
0048     calendar_defaultringtone=0
0049     calendar_defaultcaringtone=0
0050     calendar_voicenumber=56
0051     phonebook_voicenumber=3
0052 
0053     def __init__(self, logtarget, commport):
0054         com_sanyonewer.Phone.__init__(self, logtarget, commport)
0055         self.mode=self.MODENONE
0056         self.numbertypetab=numbertypetab
0057 
0058 class Profile(com_sanyonewer.Profile):
0059 
0060     protocolclass=Phone.protocolclass
0061     serialsname=Phone.serialsname
0062     phone_manufacturer='SANYO'
0063     phone_model='SCP-5600/US'
0064     
0065     WALLPAPER_WIDTH=176
0066     WALLPAPER_HEIGHT=220
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         ('wallpaper', 'write', 'MERGE'),
0074         ('ringtone', 'write', 'MERGE'),
0075         ('wallpaper', 'read', None),  # all wallpaper reading
0076         ('ringtone', 'read', None),   # all ringtone reading
0077     )
0078 
0079     def __init__(self):
0080         com_sanyonewer.Profile.__init__(self)
0081         self.numbertypetab=numbertypetab
0082 

Generated by PyXR 0.9.4