0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2007 Roger Binns <rogerb@bitpim.org> 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_motov3c.py 3460 2006-07-08 23:55:09Z djpham $ 0009 0010 """Motorola V3t GSM phone""" 0011 0012 import common 0013 import com_moto_gsm 0014 0015 class Phone(com_moto_gsm.Phone): 0016 """Talk to a Motorola RAZR V3t GSM phone""" 0017 desc="Moto-RAZR-V3t" 0018 serialsname="motov3t" 0019 0020 def __init__(self, logtarget, commport): 0021 com_moto_gsm.Phone.__init__(self, logtarget, commport) 0022 0023 parentprofile=com_moto_gsm.Profile 0024 class Profile(parentprofile): 0025 0026 serialsname=Phone.serialsname 0027 0028 WALLPAPER_WIDTH=176 0029 WALLPAPER_HEIGHT=220 0030 MAX_WALLPAPER_BASENAME_LENGTH=37 0031 WALLPAPER_FILENAME_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789()_ .-" 0032 WALLPAPER_CONVERT_FORMAT="jpg" 0033 0034 # Motorola USB device 0035 usbids=( ( 0x22B8, 0x4902, 1), 0036 ) 0037 deviceclasses=("modem",) 0038 0039 # use for auto-detection 0040 phone_manufacturer='Motorola' 0041 phone_model='V3t ' 0042 common_model_name='V710' 0043 generic_phone_model='Motorola CDMA v710 Phone' 0044 0045 def __init__(self): 0046 super(Profile, self).__init__() 0047 0048 # all dumped in "images" 0049 imageorigins={} 0050 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 0051 def GetImageOrigins(self): 0052 return self.imageorigins 0053 0054 # our targets are the same for all origins 0055 imagetargets={} 0056 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 0057 {'width': 176, 'height': 200, 'format': "JPEG"})) 0058 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 0059 {'width': 176, 'height': 220, 'format': "JPEG"})) 0060 def GetTargetsForImageOrigin(self, origin): 0061 return self.imagetargets 0062
Generated by PyXR 0.9.4