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

Source Code for Module phones.com_lgvx9400

  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  ### The communication protocol appears to be identical to the VX-8700. 
 11  ### 
 12  ### Testing credits: Erich Volande 
 13   
 14  """ 
 15  Communicate with the LG VX9400 cell phone 
 16  """ 
 17   
 18  # BitPim modules 
 19  import common 
 20  import com_phone 
 21  import com_brew 
 22  import prototypes 
 23  import commport 
 24  import p_brew 
 25  import helpids 
 26  import com_lgvx8700 
 27  import com_lgvx8100 
 28  import p_lgvx9400 
 29   
 30  #------------------------------------------------------------------------------- 
 31  parentphone=com_lgvx8700.Phone 
32 -class Phone(parentphone):
33 "Talk to LG VX-9400 cell phone" 34 35 desc="LG-VX9400" 36 # Need to create a Help page for this phone 37 helpid=None 38 protocolclass=p_lgvx9400 39 serialsname='lgvx9400' 40 41 my_model='VX9400' 42
43 - def setDMversion(self):
44 self._DMv5=True 45 # T9MVZV02 takes about 15 seconds to kick out of DM 46 self._timer = 15
47
48 - def getgroups(self, results):
49 return com_lgvx8100.Phone.getgroups (self, results)
50 51 # Fundamentals: 52 # - get_esn - same as LG VX-8300 53 # - getgroups - same as LG VX-8100 54 # - getwallpaperindices - LGUncountedIndexedMedia 55 # - getringtoneindices - LGUncountedIndexedMedia 56 # - DM Version - 5 57 58 #------------------------------------------------------------------------------- 59 parentprofile=com_lgvx8700.Profile
60 -class Profile(parentprofile):
61 protocolclass=Phone.protocolclass 62 serialsname=Phone.serialsname 63 64 BP_Calendar_Version=3 65 phone_manufacturer='LG Electronics Inc' 66 phone_model='VX9400' 67 # inside screen resoluation 68 WALLPAPER_WIDTH=240 69 WALLPAPER_HEIGHT=320 70 71 imageorigins={} 72 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 73 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 74 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 75 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 76 77 # our targets are the same for all origins 78 imagetargets={} 79 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 80 {'width': 240, 'height': 275, 'format': "JPEG"})) 81 82 _supportedsyncs=( 83 ('phonebook', 'read', None), # all phonebook reading 84 ('calendar', 'read', None), # all calendar reading 85 ('wallpaper', 'read', None), # all wallpaper reading 86 ('ringtone', 'read', None), # all ringtone reading 87 ('call_history', 'read', None),# all call history list reading 88 ('sms', 'read', None), # all SMS list reading 89 ('memo', 'read', None), # all memo list reading 90 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 91 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 92 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 93 ('wallpaper', 'write', 'OVERWRITE'), 94 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 95 ('ringtone', 'write', 'OVERWRITE'), 96 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 97 ('memo', 'write', 'OVERWRITE'), # all memo list writing 98 ('t9_udb', 'write', 'OVERWRITE'), 99 ) 100 if __debug__: 101 _supportedsyncs+=( 102 ('t9_udb', 'read', 'OVERWRITE'), 103 )
104