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

Source Code for Module phones.com_sanyo5300

 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_sanyo5300.py 2321 2005-04-23 01:12:49Z sawecw $ 
 9   
10  """Talk to the Sanyo SCP-5300 cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo5300 
15  import com_brew 
16  import com_phone 
17  import com_sanyo 
18  import prototypes 
19   
20   
21 -class Phone(com_sanyo.Phone):
22 "Talk to the Sanyo SCP-5300 cell phone" 23 24 desc="SCP-5300" 25 26 protocolclass=p_sanyo5300 27 serialsname='scp5300' 28 29 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 30 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 31 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 32 '', '', '', '', '', '', '', 33 'HallelujahSamba', 'Amazing Grace', 34 'The Entertainer', 'Mozart Eine..', 'Canon', 35 'Chopin Waltz', 'Brahms Hungar..', 'Asian Jingle', 36 'Rodeo', 'Call Delivery', 'Toy Box' ) 37 38 calendar_defaultringtone=0 39 calendar_tonerange=xrange(100,100) 40 calendar_toneoffset=0 41
42 - def __init__(self, logtarget, commport):
43 com_sanyo.Phone.__init__(self, logtarget, commport) 44 self.mode=self.MODENONE
45
46 -class Profile(com_sanyo.Profile):
47 48 protocolclass=Phone.protocolclass 49 serialsname=Phone.serialsname 50 phone_manufacturer='SANYO' 51 phone_model='SCP-5300/US' 52 53 WALLPAPER_WIDTH=132 54 WALLPAPER_HEIGHT=144 55 OVERSIZE_PERCENTAGE=100 56
57 - def __init__(self):
59