PyXR

c:\projects\bitpim\src \ phones \ com_sanyo7200.py



0001 ### BITPIM
0002 ###
0003 ### Copyright (C) 2003-2004 Stephen Wood <sawecw@users.sf.net>
0004 ###
0005 ### This program is free software; you can redistribute it and/or modify
0006 ### it under the terms of the BitPim license as detailed in the LICENSE file.
0007 ###
0008 ### $Id: com_sanyo7200.py 2321 2005-04-23 01:12:49Z sawecw $
0009 
0010 """Talk to the Sanyo SCP-7200 (RL2000) cell phone"""
0011 
0012 # my modules
0013 import common
0014 import p_sanyo7200
0015 import com_brew
0016 import com_phone
0017 import com_sanyo
0018 import prototypes
0019 
0020 
0021 class Phone(com_sanyo.Phone):
0022     "Talk to the Sanyo SCP-7200 cell phone"
0023 
0024     desc="SCP-7200"
0025 
0026     protocolclass=p_sanyo7200
0027     serialsname='scp7200'
0028 
0029     builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice')
0030                       
0031     calendar_defaultringtone=0
0032 
0033     def __init__(self, logtarget, commport):
0034         com_sanyo.Phone.__init__(self, logtarget, commport)
0035         self.mode=self.MODENONE
0036 
0037     def savecalendar(self, dict, merge):
0038         req=self.protocolclass.beginendupdaterequest()
0039         req.beginend=1 # Start update
0040         res=self.sendpbcommand(req, self.protocolclass.beginendupdateresponse, writemode=True)
0041 
0042         self.writewait()
0043         result = com_sanyo.Phone.savecalendar(self, dict, merge)
0044 
0045 class Profile(com_sanyo.Profile):
0046 
0047     protocolclass=Phone.protocolclass
0048     serialsname=Phone.serialsname
0049     phone_manufacturer='SANYO'
0050     phone_model='SCP-7200/US'
0051 
0052     WALLPAPER_WIDTH=120
0053     WALLPAPER_HEIGHT=128
0054     OVERSIZE_PERCENTAGE=100
0055 
0056     def __init__(self):
0057         com_sanyo.Profile.__init__(self)
0058 

Generated by PyXR 0.9.4