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

Source Code for Module phones.com_lgvx8610

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2008 Joe Pham <djpham@bitpim.org> 
 4  ### 
 5  ### This program is free software; you can redistribute it and/or modify 
 6  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 7  ### 
 8  ### $Id: com_lgvx8610.py 4641 2008-07-23 18:32:47Z djpham $ 
 9   
10  """ 
11  Communicate with the LG VX8610 (Decoy) cell phone.  This is based on the enV2 model 
12  """ 
13   
14  import common 
15  import com_lgvx9100 
16  import p_lgvx9100 
17  import helpids 
18   
19  #------------------------------------------------------------------------------- 
20  parentphone=com_lgvx9100.Phone 
21 -class Phone(parentphone):
22 "Talk to the LG VX8610 (Decoy) cell phone" 23 24 desc="LG-VX8610" 25 helpid=helpids.ID_PHONE_LGVX8610 26 protocolclass=p_lgvx9100 27 serialsname='lgvx8610' 28 my_model='VX8610' 29
30 - def __init__(self, logtarget, commport):
31 parentphone.__init__(self, logtarget, commport)
32 33 #------------------------------------------------------------------------------- 34 parentprofile=com_lgvx9100.Profile
35 -class Profile(parentprofile):
36 protocolclass=Phone.protocolclass 37 serialsname=Phone.serialsname 38 39 BP_Calendar_Version=3 40 phone_manufacturer='LG Electronics Inc' 41 phone_model='VX8610' 42 43 WALLPAPER_WIDTH=240 44 WALLPAPER_HEIGHT=320 45 46 imageorigins={} 47 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 48 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video")) 49 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)")) 50 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)"))
51 - def GetImageOrigins(self):
52 return self.imageorigins
53 54 55 ## ringtoneorigins=('ringers', 'sounds', 'sounds(sd)',' music', 'music(sd)') 56 ## excluded_ringtone_origins=('sounds', 'sounds(sd)', 'music', 'music(sd)') 57 ringtoneorigins=('ringers', 'sounds', 'sounds(sd)') 58 excluded_ringtone_origins=('sounds', 'sounds(sd)') 59 60 # our targets are the same for all origins 61 imagetargets={} 62 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 63 {'width': 240, 'height': 320, 'format': "JPEG"})) 64
65 - def GetTargetsForImageOrigin(self, origin):
66 return self.imagetargets
67