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

Source Code for Module phones.com_sanyo4930

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2005 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_sanyo4930.py 4289 2007-06-20 03:15:49Z sawecw $ 
 9   
10  """Talk to the Sanyo RL-4930 cell phone""" 
11   
12  # Phone has 500 name entries instead of 300.   
13   
14  # standard modules 
15  import sha 
16   
17  # my modules 
18  import common 
19  import p_sanyo4930 
20  import com_brew 
21  import com_phone 
22  import com_sanyo 
23  import com_sanyomedia 
24  import com_sanyonewer 
25  import prototypes 
26   
27  # Order is like the PM-8200 
28  numbertypetab=( 'cell', 'home', 'office', 'pager', 
29                      'fax', 'data', 'none' ) 
30   
31 -class Phone(com_sanyonewer.Phone):
32 "Talk to the Sanyo RL-4930 cell phone" 33 34 desc="SCP-4930" 35 36 FIRST_MEDIA_DIRECTORY=2 37 LAST_MEDIA_DIRECTORY=5 38 39 imagelocations=( 40 # offset, directory #, indexflag, type, maximumentries 41 ) 42 43 protocolclass=p_sanyo4930 44 serialsname='rl4930' 45 46 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 47 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 48 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 49 '', '', '', '', '', '', '', 50 'Tschaik.Swanlake', 'Satie Gymnop.#1', 51 'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves', 52 'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle', 53 'Disco', 'Toy Box', 'Rodeo' ) 54 55 calendar_defaultringtone=4 56
57 - def __init__(self, logtarget, commport):
58 com_sanyonewer.Phone.__init__(self, logtarget, commport) 59 self.mode=self.MODENONE 60 self.numbertypetab=numbertypetab
61
62 -class Profile(com_sanyonewer.Profile):
63 64 protocolclass=Phone.protocolclass 65 serialsname=Phone.serialsname 66 phone_manufacturer='SANYO' 67 phone_model='SCP-4930/US' 68 69 WALLPAPER_WIDTH=128 70 WALLPAPER_HEIGHT=112 71 OVERSIZE_PERCENTAGE=100 72
73 - def __init__(self):
76