PyXR

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



0001 ### BITPIM
0002 ###
0003 ### Copyright (C) 2004 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_sanyo7400.py 2632 2005-11-17 04:57:55Z sawecw $
0009 
0010 """Talk to the Sanyo MM-7400 cell phone"""
0011 
0012 # my modules
0013 import common
0014 import p_sanyo7400
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-7400 cell phone"
0027 
0028     desc="MM-7400"
0029     protocolclass=p_sanyo7400
0030     serialsname='mm7400'
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', 'Ringer & Voice', '', '', '', '', '', '', 
0040                        'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
0041                        'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '',
0042                        '', '', '', '', '', '', '',
0043                        'Tschaik.Swanlake', 'Satie Gymnop.#1',
0044                        'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves',
0045                        'Foster Ky. Home', 'The Moment', 'Asian Jingle',
0046                        'Disco')
0047 
0048     calendar_defaultringtone=0
0049     calendar_defaultcaringtone=0
0050 
0051     def __init__(self, logtarget, commport):
0052         com_sanyonewer.Phone.__init__(self, logtarget, commport)
0053         self.mode=self.MODENONE
0054         self.numbertypetab=numbertypetab
0055 
0056 class Profile(com_sanyonewer.Profile):
0057 
0058     protocolclass=Phone.protocolclass
0059     serialsname=Phone.serialsname
0060     phone_manufacturer='SANYO'
0061     phone_model='SCP-7400/US'
0062     
0063     WALLPAPER_WIDTH=176
0064     WALLPAPER_HEIGHT=220
0065 
0066     _supportedsyncs=(
0067         ('phonebook', 'read', None),  # all phonebook reading
0068         ('calendar', 'read', None),   # all calendar reading
0069         ('phonebook', 'write', 'OVERWRITE'),  # only overwriting phonebook
0070         ('calendar', 'write', 'OVERWRITE'),   # only overwriting calendar
0071         ('wallpaper', 'write', 'MERGE'),
0072         ('ringtone', 'write', 'MERGE'),
0073         ('wallpaper', 'read', None),  # all wallpaper reading
0074         ('ringtone', 'read', None),   # all ringtone reading
0075     )
0076 
0077     def __init__(self):
0078         com_sanyonewer.Profile.__init__(self)
0079         self.numbertypetab=numbertypetab
0080 

Generated by PyXR 0.9.4