0001 #!/usr/bin/env python 0002 0003 ### BITPIM 0004 ### 0005 ### Copyright (C) 2006 Joe Pham <djpham@bitpim.org> 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_lgvx8600.py 4305 2007-07-16 04:05:25Z djpham $ 0011 0012 """ 0013 Communicate with the LG VX8600 cell phone, which I was told is VERY similar to 0014 the VX-8500 0015 """ 0016 0017 # BitPim modules 0018 import common 0019 import com_lgvx8500 0020 import p_lgvx8600 0021 import helpids 0022 0023 #------------------------------------------------------------------------------- 0024 parentphone=com_lgvx8500.Phone 0025 class Phone(parentphone): 0026 desc="LG-VX8600" 0027 helpid=helpids.ID_PHONE_LGVX8600 0028 protocolclass=p_lgvx8600 0029 serialsname='lgvx8600' 0030 0031 my_model='VX8600' 0032 0033 def setDMversion(self): 0034 _fw_version=self.get_firmware_version()[-1] 0035 # T86VZV03 uses DMv5 0036 self._DMv5=self.my_model=='VX8600' and _fw_version>'2' 0037 if self._DMv5: 0038 # takes about 30 seconds for T86VZV03 to kick out of DM 0039 self._timeout = 30 0040 0041 # Fundamentals: 0042 # - get_esn - same as LG VX-8300 0043 # - getgroups - same as LG VX-8100 0044 # - getwallpaperindices - LGUncountedIndexedMedia 0045 # - getrintoneindices - LGUncountedIndexedMedia 0046 # - DM Version - T86VZV01 - T86VZV02: 4, T86VZV03: 5 0047 0048 #------------------------------------------------------------------------------- 0049 parentprofile=com_lgvx8500.Profile 0050 class Profile(parentprofile): 0051 protocolclass=Phone.protocolclass 0052 serialsname=Phone.serialsname 0053 0054 BP_Calendar_Version=3 0055 phone_manufacturer='LG Electronics Inc' 0056 phone_model='VX8600' 0057 # inside screen resoluation 0058 WALLPAPER_WIDTH=176 0059 WALLPAPER_HEIGHT=220 0060 0061 imageorigins={} 0062 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 0063 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 0064 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 0065 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 0066 0067 # our targets are the same for all origins 0068 imagetargets={} 0069 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 0070 {'width': 176, 'height': 220, 'format': "JPEG"})) 0071 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 0072 {'width': 176, 'height': 184, 'format': "JPEG"})) 0073 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 0074 {'width': 128, 'height': 160, 'format': "JPEG"})) 0075 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 0076 {'width': 128, 'height': 142, 'format': "JPEG"})) 0077 0078 _supportedsyncs=( 0079 ('phonebook', 'read', None), # all phonebook reading 0080 ('calendar', 'read', None), # all calendar reading 0081 ('wallpaper', 'read', None), # all wallpaper reading 0082 ('ringtone', 'read', None), # all ringtone reading 0083 ('call_history', 'read', None),# all call history list reading 0084 ('sms', 'read', None), # all SMS list reading 0085 ('memo', 'read', None), # all memo list reading 0086 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0087 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0088 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 0089 ('wallpaper', 'write', 'OVERWRITE'), 0090 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 0091 ('ringtone', 'write', 'OVERWRITE'), 0092 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 0093 ('memo', 'write', 'OVERWRITE'), # all memo list writing 0094 ## ('playlist', 'read', 'OVERWRITE'), 0095 ## ('playlist', 'write', 'OVERWRITE'), 0096 ('t9_udb', 'write', 'OVERWRITE'), 0097 ) 0098 if __debug__: 0099 _supportedsyncs+=( 0100 ('t9_udb', 'read', 'OVERWRITE'), 0101 ) 0102
Generated by PyXR 0.9.4