Package phones :: Module com_sanyo8100
[hide private]
[frames] | no frames]

Source Code for Module phones.com_sanyo8100

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2003-2004 Stephen Wood <sawecw@users.sf.net> 
 4  ### 
 5  ### This program is free software; you can redistribute it and/or modify 
 6  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 7  ### 
 8  ### $Id: com_sanyo8100.py 2717 2006-01-01 04:22:29Z sawecw $ 
 9   
10  """Talk to the Sanyo SCP-8100 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo8100 
15  import com_sanyomedia 
16  import com_sanyo 
17  import com_brew 
18  import com_phone 
19  import prototypes 
20   
21  import os 
22   
23 -class Phone(com_sanyomedia.SanyoMedia,com_sanyo.Phone):
24 "Talk to the Sanyo SCP-8100 cell phone" 25 26 desc="SCP-8100" 27 28 FIRST_MEDIA_DIRECTORY=1 29 LAST_MEDIA_DIRECTORY=3 30 31 protocolclass=p_sanyo8100 32 serialsname='scp8100' 33 34 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 35 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 36 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 37 '', '', '', '', '', '', '', 38 'Tschaik.Swanlake', 'Satie Gymnop.#1', 39 'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves', 40 'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle', 41 'Disco' ) 42 43 calendar_defaultringtone=4 44 calendar_defaultcaringtone=4 45 calendar_tonerange=xrange(18,26) 46 calendar_toneoffset=8 47
48 - def __init__(self, logtarget, commport):
49 com_sanyo.Phone.__init__(self, logtarget, commport) 50 com_sanyomedia.SanyoMedia.__init__(self) 51 self.mode=self.MODENONE
52
53 -class Profile(com_sanyo.Profile):
54 55 protocolclass=Phone.protocolclass 56 serialsname=Phone.serialsname 57 phone_manufacturer='SANYO' 58 phone_model='SCP-8100/US' 59 # GMR: 1.115SP ,10019 60 61 WALLPAPER_WIDTH=132 62 WALLPAPER_HEIGHT=144 63 OVERSIZE_PERCENTAGE=100 64 65 _supportedsyncs=( 66 ('phonebook', 'read', None), # all phonebook reading 67 ('calendar', 'read', None), # all calendar reading 68 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 69 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 70 ('wallpaper', 'write', 'MERGE'), 71 ('ringtone', 'write', 'MERGE'), 72 ('wallpaper', 'read', None), # all wallpaper reading 73 ('ringtone', 'read', None), # all ringtone reading 74 ('call_history', 'read', None),# all call history list reading 75 ('sms', 'read', None), 76 ) 77
78 - def __init__(self):
80