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

Source Code for Module phones.com_motov3t

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2007 Roger Binns <rogerb@bitpim.org> 
 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_motov3c.py 3460 2006-07-08 23:55:09Z djpham $ 
 9   
10  """Motorola V3t GSM phone""" 
11   
12  import common 
13  import com_moto_gsm 
14   
15 -class Phone(com_moto_gsm.Phone):
16 """Talk to a Motorola RAZR V3t GSM phone""" 17 desc="Moto-RAZR-V3t" 18 serialsname="motov3t" 19
20 - def __init__(self, logtarget, commport):
21 com_moto_gsm.Phone.__init__(self, logtarget, commport)
22 23 parentprofile=com_moto_gsm.Profile
24 -class Profile(parentprofile):
25 26 serialsname=Phone.serialsname 27 28 WALLPAPER_WIDTH=176 29 WALLPAPER_HEIGHT=220 30 MAX_WALLPAPER_BASENAME_LENGTH=37 31 WALLPAPER_FILENAME_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789()_ .-" 32 WALLPAPER_CONVERT_FORMAT="jpg" 33 34 # Motorola USB device 35 usbids=( ( 0x22B8, 0x4902, 1), 36 ) 37 deviceclasses=("modem",) 38 39 # use for auto-detection 40 phone_manufacturer='Motorola' 41 phone_model='V3t ' 42 common_model_name='V710' 43 generic_phone_model='Motorola CDMA v710 Phone' 44
45 - def __init__(self):
46 super(Profile, self).__init__()
47 48 # all dumped in "images" 49 imageorigins={} 50 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images"))
51 - def GetImageOrigins(self):
52 return self.imageorigins
53 54 # our targets are the same for all origins 55 imagetargets={} 56 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 57 {'width': 176, 'height': 200, 'format': "JPEG"})) 58 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 59 {'width': 176, 'height': 220, 'format': "JPEG"}))
60 - def GetTargetsForImageOrigin(self, origin):
61 return self.imagetargets
62