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

Source Code for Module phones.com_motov325

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2007 Joe Pham <djpham@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_motov325.py 4541 2008-01-04 03:41:51Z djpham $ 
 9   
10  """Communicate with Motorola phones using AT commands""" 
11   
12  import time 
13   
14  import common 
15  import com_motov3m as v3m 
16  import helpids 
17  import p_motov325 
18   
19  parentphone=v3m.Phone 
20 -class Phone(parentphone):
21 desc='Moto-V325' 22 helpid=helpids.ID_PHONE_MOTOV325 23 protocolclass=p_motov325 24 serialsname='motov325' 25 26 builtinringtones=( 27 (0, ('Silent',)), 28 (5, ('Vibe Dot', 'Vibe Dash', 'Vibe Dot Dot', 'Vibe Dot Dash', 29 'Vibe Pulse')), 30 (11, ('Alert', 'Standard', 'Bells', 'Triads', 'Up and Down')), 31 (30, ('Moonlit Haze', 'Nightlife', 'Wind Chime', 'Random', 32 'Bit & Bytes', 'Door Bell', 'Ding', 'One Moment', 'Provincial', 33 'Harmonics', 'Interlude', 'Snaggle', 'Cosmic')), 34 ) 35
36 - def getwallpapers(self, fundamentals):
37 """Retrieve wallpaper data""" 38 # The V325 needs some time to switch from BREW back to MODEM mode 39 # without this sleep, the switch will always come back with ERROR 40 self.log('Waiting for the phone to switch back to mode modem') 41 time.sleep(2) 42 return parentphone.getwallpapers(self, fundamentals)
43 44 #------------------------------------------------------------------------------ 45 parentprofile=v3m.Profile
46 -class Profile(parentprofile):
47 serialsname=Phone.serialsname 48 49 # use for auto-detection 50 phone_manufacturer='Motorola' 51 phone_model='V325 ' 52 common_model_name='V325' 53 generic_phone_model='Motorola V325 Phone' 54 55 # our targets are the same for all origins 56 imagetargets={} 57 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 58 {'width': 176, 'height': 184, 'format': "JPEG"})) 59 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 60 {'width': 96, 'height': 72, 'format': "JPEG"})) 61 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 62 {'width': 176, 'height': 220, 'format': "JPEG"}))
63