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 ### $Id: com_lgvx10000.py 4677 2008-08-12 22:28:17Z hjelmn $ 0010 0011 0012 """ 0013 Communicate with the LG VX10000 cell phone. 0014 """ 0015 0016 # BitPim modules 0017 import common 0018 import com_brew 0019 import prototypes 0020 import com_lgvx8800 0021 import p_lgvx10000 0022 import helpids 0023 0024 #------------------------------------------------------------------------------- 0025 parentphone=com_lgvx8800.Phone 0026 class Phone(parentphone): 0027 desc="LG-VX10000" 0028 helpid=helpids.ID_PHONE_LGVX10000 0029 protocolclass=p_lgvx10000 0030 serialsname='lgvx10000' 0031 0032 my_model='VX10000' 0033 0034 # Fundamentals: 0035 # - get_esn - same as LG VX-8300 0036 # - getgroups - same as LG VX-8700 0037 # - getwallpaperindices - LGUncountedIndexedMedia 0038 # - getringtoneindices - LGUncountedIndexedMedia 0039 # - DM Version - 5 or 6 0040 # - phonebook - same as LG VX-8550 0041 0042 #------------------------------------------------------------------------------- 0043 parentprofile=com_lgvx8800.Profile 0044 class Profile(parentprofile): 0045 protocolclass=Phone.protocolclass 0046 serialsname=Phone.serialsname 0047 0048 BP_Calendar_Version=3 0049 phone_manufacturer='LG Electronics Inc' 0050 phone_model='VX10000' 0051 # inside screen resoluation 0052 WALLPAPER_WIDTH = 400 0053 WALLPAPER_HEIGHT = 240 0054 0055 imageorigins={} 0056 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 0057 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 0058 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 0059 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)")) 0060 0061 # our targets are the same for all origins 0062 imagetargets={} 0063 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 0064 {'width': 240, 'height': 400, 'format': "JPEG"})) 0065 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 0066 {'width': 400, 'height': 240, 'format': "JPEG"})) 0067 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 0068 {'width': 120, 'height': 100, 'format': "JPEG"})) 0069 0070 _supportedsyncs=( 0071 ('phonebook', 'read', None), # all phonebook reading 0072 ('calendar', 'read', None), # all calendar reading 0073 ('wallpaper', 'read', None), # all wallpaper reading 0074 ('ringtone', 'read', None), # all ringtone reading 0075 ('call_history', 'read', None),# all call history list reading 0076 ('sms', 'read', None), # all SMS list reading 0077 ('memo', 'read', None), # all memo list reading 0078 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 0079 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 0080 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 0081 ('wallpaper', 'write', 'OVERWRITE'), 0082 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 0083 ('ringtone', 'write', 'OVERWRITE'), 0084 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 0085 ('memo', 'write', 'OVERWRITE'), # all memo list writing 0086 ## ('playlist', 'read', 'OVERWRITE'), 0087 ## ('playlist', 'write', 'OVERWRITE'), 0088 ('t9_udb', 'write', 'OVERWRITE'), 0089 ) 0090 if __debug__: 0091 _supportedsyncs+=( 0092 ('t9_udb', 'read', 'OVERWRITE'), 0093 ) 0094
Generated by PyXR 0.9.4