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

Source Code for Module phones.com_sanyo8100_bell

 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_bell.py 3753 2006-12-07 04:03:00Z sawecw $ 
 9   
10  """Talk to the Sanyo SCP-8100 Bell Mobility (Canada) cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo8100_bell 
15  import com_brew 
16  import com_phone 
17  import com_sanyo 
18  import com_sanyomedia 
19  import com_sanyonewer 
20  import prototypes 
21   
22  import os 
23   
24 -class Phone(com_sanyonewer.Phone):
25 "Talk to the Sanyo SCP-8100 Bell Mobility (Canada) cell phone" 26 27 desc="SCP-8100-Bell" 28 29 FIRST_MEDIA_DIRECTORY=1 30 LAST_MEDIA_DIRECTORY=3 31 32 protocolclass=p_sanyo8100_bell 33 serialsname='scp8100bell' 34 35 # Need to check these from Bell. 36 37 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 38 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 39 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 40 '', '', '', '', '', '', '', 41 'Tschaik.Swanlake', 'Satie Gymnop.#1', 42 'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves', 43 'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle', 44 'Disco' ) 45 46 calendar_defaultringtone=4 47 calendar_defaultcaringtone=4 48 calendar_tonerange=xrange(18,26) 49 calendar_toneoffset=8 50
51 - def __init__(self, logtarget, commport):
52 com_sanyonewer.Phone.__init__(self, logtarget, commport) 53 self.mode=self.MODENONE
54
55 -class Profile(com_sanyonewer.Profile):
56 57 protocolclass=Phone.protocolclass 58 serialsname=Phone.serialsname 59 phone_manufacturer='SANYO' 60 phone_model='SCP-8100CA' 61 62 WALLPAPER_WIDTH=132 63 WALLPAPER_HEIGHT=144 64 OVERSIZE_PERCENTAGE=100 65 66 _supportedsyncs=( 67 ('phonebook', 'read', None), # all phonebook reading 68 ('calendar', 'read', None), # all calendar reading 69 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 70 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 71 ('wallpaper', 'read', None), # all wallpaper reading 72 ('ringtone', 'read', None), # all ringtone reading 73 # ('wallpaper', 'write', 'MERGE'), 74 # ('ringtone', 'write', 'MERGE'), 75 ) 76
77 - def __init__(self):
79