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

Source Code for Module phones.com_lgvx10000

 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  ### $Id: com_lgvx10000.py 4677 2008-08-12 22:28:17Z hjelmn $ 
10   
11   
12  """ 
13  Communicate with the LG VX10000 cell phone. 
14  """ 
15   
16  # BitPim modules 
17  import common 
18  import com_brew 
19  import prototypes 
20  import com_lgvx8800 
21  import p_lgvx10000 
22  import helpids 
23   
24  #------------------------------------------------------------------------------- 
25  parentphone=com_lgvx8800.Phone 
26 -class Phone(parentphone):
27 desc="LG-VX10000" 28 helpid=helpids.ID_PHONE_LGVX10000 29 protocolclass=p_lgvx10000 30 serialsname='lgvx10000' 31 32 my_model='VX10000'
33 34 # Fundamentals: 35 # - get_esn - same as LG VX-8300 36 # - getgroups - same as LG VX-8700 37 # - getwallpaperindices - LGUncountedIndexedMedia 38 # - getringtoneindices - LGUncountedIndexedMedia 39 # - DM Version - 5 or 6 40 # - phonebook - same as LG VX-8550 41 42 #------------------------------------------------------------------------------- 43 parentprofile=com_lgvx8800.Profile
44 -class Profile(parentprofile):
45 protocolclass=Phone.protocolclass 46 serialsname=Phone.serialsname 47 48 BP_Calendar_Version=3 49 phone_manufacturer='LG Electronics Inc' 50 phone_model='VX10000' 51 # inside screen resoluation 52 WALLPAPER_WIDTH = 400 53 WALLPAPER_HEIGHT = 240 54 55 imageorigins={} 56 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 57 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 58 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 59 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 60 61 # our targets are the same for all origins 62 imagetargets={} 63 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 64 {'width': 240, 'height': 400, 'format': "JPEG"})) 65 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 66 {'width': 400, 'height': 240, 'format': "JPEG"})) 67 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 68 {'width': 120, 'height': 100, 'format': "JPEG"})) 69 70 _supportedsyncs=( 71 ('phonebook', 'read', None), # all phonebook reading 72 ('calendar', 'read', None), # all calendar reading 73 ('wallpaper', 'read', None), # all wallpaper reading 74 ('ringtone', 'read', None), # all ringtone reading 75 ('call_history', 'read', None),# all call history list reading 76 ('sms', 'read', None), # all SMS list reading 77 ('memo', 'read', None), # all memo list reading 78 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 79 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 80 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 81 ('wallpaper', 'write', 'OVERWRITE'), 82 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 83 ('ringtone', 'write', 'OVERWRITE'), 84 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 85 ('memo', 'write', 'OVERWRITE'), # all memo list writing 86 ## ('playlist', 'read', 'OVERWRITE'), 87 ## ('playlist', 'write', 'OVERWRITE'), 88 ('t9_udb', 'write', 'OVERWRITE'), 89 ) 90 if __debug__: 91 _supportedsyncs+=( 92 ('t9_udb', 'read', 'OVERWRITE'), 93 )
94