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

Source Code for Module phones.com_sanyo4900

 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_sanyo4900.py 2319 2005-04-22 03:50:56Z sawecw $ 
 9   
10  """Talk to the Sanyo SCP-4900 cell phone""" 
11   
12  # my modules 
13  import time 
14  import common 
15  import p_sanyo4900 
16  import com_brew 
17  import com_phone 
18  import com_sanyo 
19  import prototypes 
20   
21   
22 -class Phone(com_sanyo.Phone):
23 "Talk to the Sanyo SCP-4900 cell phone" 24 25 desc="SCP-4900" 26 27 protocolclass=p_sanyo4900 28 serialsname='scp4900' 29 30 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 31 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 32 '', '', '', '', '', '', '', '', '', '', '', '', '', '', 33 '', 'La Bamba', 'Foster Dreamer', 'Schubert March', 34 'Mozart Eine Kleine', 'Debussey Arabesq', 'Nedelka', 35 'Brahms Hungarian', 'Star Spangled Banner', 'Rodeo', 36 'Birds', '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 47
48 -class Profile(com_sanyo.Profile):
49 50 protocolclass=Phone.protocolclass 51 serialsname=Phone.serialsname 52 phone_manufacturer='SANYO' 53 phone_model='SCP-4900/US' 54 # GMR: 1.057SP ,10018 55 56 WALLPAPER_WIDTH=120 57 WALLPAPER_HEIGHT=128 58 OVERSIZE_PERCENTAGE=100 59
60 - def __init__(self):
62