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

Source Code for Module phones.com_lgvx8600

  1  #!/usr/bin/env python 
  2   
  3  ### BITPIM 
  4  ### 
  5  ### Copyright (C) 2006 Joe Pham <djpham@bitpim.org> 
  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_lgvx8600.py 4305 2007-07-16 04:05:25Z djpham $ 
 11   
 12  """ 
 13  Communicate with the LG VX8600 cell phone, which I was told is VERY similar to 
 14  the VX-8500 
 15  """ 
 16   
 17  # BitPim modules 
 18  import common 
 19  import com_lgvx8500 
 20  import p_lgvx8600 
 21  import helpids 
 22   
 23  #------------------------------------------------------------------------------- 
 24  parentphone=com_lgvx8500.Phone 
25 -class Phone(parentphone):
26 desc="LG-VX8600" 27 helpid=helpids.ID_PHONE_LGVX8600 28 protocolclass=p_lgvx8600 29 serialsname='lgvx8600' 30 31 my_model='VX8600' 32
33 - def setDMversion(self):
34 _fw_version=self.get_firmware_version()[-1] 35 # T86VZV03 uses DMv5 36 self._DMv5=self.my_model=='VX8600' and _fw_version>'2' 37 if self._DMv5: 38 # takes about 30 seconds for T86VZV03 to kick out of DM 39 self._timeout = 30
40 41 # Fundamentals: 42 # - get_esn - same as LG VX-8300 43 # - getgroups - same as LG VX-8100 44 # - getwallpaperindices - LGUncountedIndexedMedia 45 # - getrintoneindices - LGUncountedIndexedMedia 46 # - DM Version - T86VZV01 - T86VZV02: 4, T86VZV03: 5 47 48 #------------------------------------------------------------------------------- 49 parentprofile=com_lgvx8500.Profile
50 -class Profile(parentprofile):
51 protocolclass=Phone.protocolclass 52 serialsname=Phone.serialsname 53 54 BP_Calendar_Version=3 55 phone_manufacturer='LG Electronics Inc' 56 phone_model='VX8600' 57 # inside screen resoluation 58 WALLPAPER_WIDTH=176 59 WALLPAPER_HEIGHT=220 60 61 imageorigins={} 62 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 63 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 64 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 65 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 66 67 # our targets are the same for all origins 68 imagetargets={} 69 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 70 {'width': 176, 'height': 220, 'format': "JPEG"})) 71 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 72 {'width': 176, 'height': 184, 'format': "JPEG"})) 73 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 74 {'width': 128, 'height': 160, 'format': "JPEG"})) 75 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 76 {'width': 128, 'height': 142, 'format': "JPEG"})) 77 78 _supportedsyncs=( 79 ('phonebook', 'read', None), # all phonebook reading 80 ('calendar', 'read', None), # all calendar reading 81 ('wallpaper', 'read', None), # all wallpaper reading 82 ('ringtone', 'read', None), # all ringtone reading 83 ('call_history', 'read', None),# all call history list reading 84 ('sms', 'read', None), # all SMS list reading 85 ('memo', 'read', None), # all memo list reading 86 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 87 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 88 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 89 ('wallpaper', 'write', 'OVERWRITE'), 90 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 91 ('ringtone', 'write', 'OVERWRITE'), 92 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 93 ('memo', 'write', 'OVERWRITE'), # all memo list writing 94 ## ('playlist', 'read', 'OVERWRITE'), 95 ## ('playlist', 'write', 'OVERWRITE'), 96 ('t9_udb', 'write', 'OVERWRITE'), 97 ) 98 if __debug__: 99 _supportedsyncs+=( 100 ('t9_udb', 'read', 'OVERWRITE'), 101 )
102