PyXR

c:\projects\bitpim\src \ phones \ com_lgvx8610.py



0001 ### BITPIM
0002 ###
0003 ### Copyright (C) 2008 Joe Pham <djpham@bitpim.org>
0004 ###
0005 ### This program is free software; you can redistribute it and/or modify
0006 ### it under the terms of the BitPim license as detailed in the LICENSE file.
0007 ###
0008 ### $Id: com_lgvx8610.py 4641 2008-07-23 18:32:47Z djpham $
0009 
0010 """
0011 Communicate with the LG VX8610 (Decoy) cell phone.  This is based on the enV2 model
0012 """
0013 
0014 import common
0015 import com_lgvx9100
0016 import p_lgvx9100
0017 import helpids
0018 
0019 #-------------------------------------------------------------------------------
0020 parentphone=com_lgvx9100.Phone
0021 class Phone(parentphone):
0022     "Talk to the LG VX8610 (Decoy) cell phone"
0023 
0024     desc="LG-VX8610"
0025     helpid=helpids.ID_PHONE_LGVX8610
0026     protocolclass=p_lgvx9100
0027     serialsname='lgvx8610'
0028     my_model='VX8610'
0029 
0030     def __init__(self, logtarget, commport):
0031         parentphone.__init__(self, logtarget, commport)
0032 
0033 #-------------------------------------------------------------------------------
0034 parentprofile=com_lgvx9100.Profile
0035 class Profile(parentprofile):
0036     protocolclass=Phone.protocolclass
0037     serialsname=Phone.serialsname
0038 
0039     BP_Calendar_Version=3
0040     phone_manufacturer='LG Electronics Inc'
0041     phone_model='VX8610'
0042 
0043     WALLPAPER_WIDTH=240
0044     WALLPAPER_HEIGHT=320
0045 
0046     imageorigins={}
0047     imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images"))
0048     imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video"))
0049     imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)"))
0050     imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)"))
0051     def GetImageOrigins(self):
0052         return self.imageorigins
0053 
0054 
0055 ##    ringtoneorigins=('ringers', 'sounds', 'sounds(sd)',' music', 'music(sd)')
0056 ##    excluded_ringtone_origins=('sounds', 'sounds(sd)', 'music', 'music(sd)')
0057     ringtoneorigins=('ringers', 'sounds', 'sounds(sd)')
0058     excluded_ringtone_origins=('sounds', 'sounds(sd)')
0059 
0060     # our targets are the same for all origins
0061     imagetargets={}
0062     imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
0063                                       {'width': 240, 'height': 320, 'format': "JPEG"}))
0064 
0065     def GetTargetsForImageOrigin(self, origin):
0066         return self.imagetargets
0067 

Generated by PyXR 0.9.4