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

Source Code for Module phones.com_sanyo7200

 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_sanyo7200.py 2321 2005-04-23 01:12:49Z sawecw $ 
 9   
10  """Talk to the Sanyo SCP-7200 (RL2000) cell phone""" 
11   
12  # my modules 
13  import common 
14  import p_sanyo7200 
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-7200 cell phone" 23 24 desc="SCP-7200" 25 26 protocolclass=p_sanyo7200 27 serialsname='scp7200' 28 29 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice') 30 31 calendar_defaultringtone=0 32
33 - def __init__(self, logtarget, commport):
34 com_sanyo.Phone.__init__(self, logtarget, commport) 35 self.mode=self.MODENONE
36
37 - def savecalendar(self, dict, merge):
38 req=self.protocolclass.beginendupdaterequest() 39 req.beginend=1 # Start update 40 res=self.sendpbcommand(req, self.protocolclass.beginendupdateresponse, writemode=True) 41 42 self.writewait() 43 result = com_sanyo.Phone.savecalendar(self, dict, merge)
44
45 -class Profile(com_sanyo.Profile):
46 47 protocolclass=Phone.protocolclass 48 serialsname=Phone.serialsname 49 phone_manufacturer='SANYO' 50 phone_model='SCP-7200/US' 51 52 WALLPAPER_WIDTH=120 53 WALLPAPER_HEIGHT=128 54 OVERSIZE_PERCENTAGE=100 55
56 - def __init__(self):
58