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

Source Code for Module phones.com_lgvx8350

 1  #!/usr/bin/env python 
 2   
 3  ### BITPIM 
 4  ### 
 5  ### Copyright (C) 2007 Nathan Hjelm <hjelmn@users.sourceforge.net> 
 6  ### 
 7  ### This program is free software; you can redistribute it and/or modify 
 8  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 9  ### 
10  ### $Id: com_lgvx8350.py 4471 2007-11-29 01:30:00Z djpham $ 
11   
12  """ 
13  Communicate with the LG VX8350 cell phone. 
14  """ 
15   
16  # BitPim modules 
17  import common 
18  import com_brew 
19  import prototypes 
20  import com_lgvx8550 
21  import p_lgvx8350 
22  import helpids 
23   
24  #------------------------------------------------------------------------------- 
25  parentphone=com_lgvx8550.Phone 
26 -class Phone(parentphone):
27 desc="LG-VX8350" 28 helpid=None 29 protocolclass=p_lgvx8350 30 serialsname='lgvx8350' 31 32 my_model='VX8350' 33
34 - def setDMversion(self):
35 self._DMv5 = True 36 self._timeout = 10
37 38 # Fundamentals: 39 # - get_esn - same as LG VX-8300 40 # - getgroups - same as LG VX-8700 41 # - getwallpaperindices - LGUncountedIndexedMedia 42 # - getringtoneindices - LGUncountedIndexedMedia 43 # - DM Version - 5 44 45 #------------------------------------------------------------------------------- 46 parentprofile=com_lgvx8550.Profile
47 -class Profile(parentprofile):
48 protocolclass=Phone.protocolclass 49 serialsname=Phone.serialsname 50 51 BP_Calendar_Version=3 52 phone_manufacturer='LG Electronics Inc' 53 phone_model='VX8350' 54 # inside screen resoluation 55 WALLPAPER_WIDTH=176 56 WALLPAPER_HEIGHT=220 57 58 imageorigins={} 59 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 60 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 61 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 62 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 63 64 # our targets are the same for all origins 65 imagetargets={} 66 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 67 {'width': 176, 'height': 220, 'format': "JPEG"})) 68 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 69 {'width': 176, 'height': 184, 'format': "JPEG"})) 70 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 71 {'width': 96, 'height': 81, 'format': "JPEG"})) 72 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 73 {'width': 120, 'height': 100, 'format': "JPEG"})) 74 75 _supportedsyncs=( 76 ('phonebook', 'read', None), # all phonebook reading 77 ('calendar', 'read', None), # all calendar reading 78 ('wallpaper', 'read', None), # all wallpaper reading 79 ('ringtone', 'read', None), # all ringtone reading 80 ('call_history', 'read', None),# all call history list reading 81 ('sms', 'read', None), # all SMS list reading 82 ('memo', 'read', None), # all memo list reading 83 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 84 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 85 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 86 ('wallpaper', 'write', 'OVERWRITE'), 87 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 88 ('ringtone', 'write', 'OVERWRITE'), 89 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 90 ('memo', 'write', 'OVERWRITE'), # all memo list writing 91 ('t9_udb', 'write', 'OVERWRITE'), 92 ) 93 if __debug__: 94 _supportedsyncs+=( 95 ('t9_udb', 'read', 'OVERWRITE'), 96 )
97