0001 #!/usr/bin/env python 0002 0003 ### BITPIM 0004 ### 0005 ### Copyright (C) 2007 Nathan Hjelm <hjelmn@users.sourceforge.net> 0006 ### 0007 ### This program is free software; you can redistribute it and/or modify 0008 ### it under the terms of the BitPim license as detailed in the LICENSE file. 0009 ### 0010 ### $Id: com_lgvx8350.py 4471 2007-11-29 01:30:00Z djpham $ 0011 0012 """ 0013 Communicate with the LG VX8350 cell phone. 0014 """ 0015 0016 # BitPim modules 0017 import common 0018 import com_brew 0019 import prototypes 0020 import com_lgvx8550 0021 import p_lgvx8350 0022 import helpids 0023 0024 #------------------------------------------------------------------------------- 0025 parentphone=com_lgvx8550.Phone 0026 class Phone(parentphone): 0027 desc="LG-VX8350" 0028 helpid=None 0029 protocolclass=p_lgvx8350 0030 serialsname='lgvx8350' 0031 0032 my_model='VX8350' 0033 0034 def setDMversion(self): 0035 self._DMv5 = True 0036 self._timeout = 10 0037 0038 # Fundamentals: 0039 # - get_esn - same as LG VX-8300 0040 # - getgroups - same as LG VX-8700 0041 # - getwallpaperindices - LGUncountedIndexedMedia 0042 # - getringtoneindices - LGUncountedIndexedMedia 0043 # - DM Version - 5 0044 0045 #------------------------------------------------------------------------------- 0046 parentprofile=com_lgvx8550.Profile 0047 class Profile(parentprofile): 0048 protocolclass=Phone.protocolclass 0049 serialsname=Phone.serialsname 0050 0051 BP_Calendar_Version=3 0052 phone_manufacturer='LG Electronics Inc' 0053 phone_model='VX8350' 0054 # inside screen resoluation 0055 WALLPAPER_WIDTH=176 0056 WALLPAPER_HEIGHT=220 0057 0058 imageorigins={} 0059 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 0060 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 0061 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 0062 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 0063 0064 # our targets are the same for all origins 0065 imagetargets={} 0066 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 0067 {'width': 176, 'height': 220, 'format': "JPEG"})) 0068 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 0069 {'width': 176, 'height': 184, 'format': "JPEG"})) 0070 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 0071 {'width': 96, 'height': 81, 'format': "JPEG"})) 0072 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 0073 {'width': 120, 'height': 100, 'format': "JPEG"})) 0074 0075 _supportedsyncs=( 0076 ('phonebook', 'read', None), # all phonebook reading 0077 ('calendar', 'read', None), # all calendar reading 0078 ('wallpaper', 'read', None), # all wallpaper reading 0079 ('ringtone', 'read', None), # all ringtone reading 0080 ('call_history', 'read', None),# all call history list reading 0081 ('sms', 'read', None), # all SMS list reading 0082 ('memo', 'read', None), # all memo list reading 0083 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0084 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0085 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 0086 ('wallpaper', 'write', 'OVERWRITE'), 0087 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 0088 ('ringtone', 'write', 'OVERWRITE'), 0089 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 0090 ('memo', 'write', 'OVERWRITE'), # all memo list writing 0091 ('t9_udb', 'write', 'OVERWRITE'), 0092 ) 0093 if __debug__: 0094 _supportedsyncs+=( 0095 ('t9_udb', 'read', 'OVERWRITE'), 0096 ) 0097
Generated by PyXR 0.9.4