PyXR

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



0001 ### BITPIM
0002 ###
0003 ### Copyright (C) 2003-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_sanyo8100.py 2717 2006-01-01 04:22:29Z sawecw $
0009 
0010 """Talk to the Sanyo SCP-8100 cell phone"""
0011 
0012 # my modules
0013 import common
0014 import p_sanyo8100
0015 import com_sanyomedia
0016 import com_sanyo
0017 import com_brew
0018 import com_phone
0019 import prototypes
0020 
0021 import os
0022 
0023 class Phone(com_sanyomedia.SanyoMedia,com_sanyo.Phone):
0024     "Talk to the Sanyo SCP-8100 cell phone"
0025 
0026     desc="SCP-8100"
0027 
0028     FIRST_MEDIA_DIRECTORY=1
0029     LAST_MEDIA_DIRECTORY=3
0030 
0031     protocolclass=p_sanyo8100
0032     serialsname='scp8100'
0033     
0034     builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 
0035                        'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
0036                        'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '',
0037                        '', '', '', '', '', '', '',
0038                        'Tschaik.Swanlake', 'Satie Gymnop.#1',
0039                        'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves',
0040                        'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle',
0041                        'Disco' )
0042 
0043     calendar_defaultringtone=4
0044     calendar_defaultcaringtone=4
0045     calendar_tonerange=xrange(18,26)
0046     calendar_toneoffset=8
0047 
0048     def __init__(self, logtarget, commport):
0049         com_sanyo.Phone.__init__(self, logtarget, commport)
0050         com_sanyomedia.SanyoMedia.__init__(self)
0051         self.mode=self.MODENONE
0052 
0053 class Profile(com_sanyo.Profile):
0054 
0055     protocolclass=Phone.protocolclass
0056     serialsname=Phone.serialsname
0057     phone_manufacturer='SANYO'
0058     phone_model='SCP-8100/US'
0059     # GMR: 1.115SP   ,10019
0060 
0061     WALLPAPER_WIDTH=132
0062     WALLPAPER_HEIGHT=144
0063     OVERSIZE_PERCENTAGE=100
0064 
0065     _supportedsyncs=(
0066         ('phonebook', 'read', None),  # all phonebook reading
0067         ('calendar', 'read', None),   # all calendar reading
0068         ('phonebook', 'write', 'OVERWRITE'),  # only overwriting phonebook
0069         ('calendar', 'write', 'OVERWRITE'),   # only overwriting calendar
0070         ('wallpaper', 'write', 'MERGE'),
0071         ('ringtone', 'write', 'MERGE'),
0072         ('wallpaper', 'read', None),  # all wallpaper reading
0073         ('ringtone', 'read', None),   # all ringtone reading
0074         ('call_history', 'read', None),# all call history list reading
0075         ('sms', 'read', None),
0076     )
0077 
0078     def __init__(self):
0079         com_sanyo.Profile.__init__(self)
0080 

Generated by PyXR 0.9.4