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

Source Code for Module phones.com_lgvx5400

 1  #!/usr/bin/env python 
 2   
 3  ### BITPIM 
 4  ### 
 5  ### Copyright (C) 2006 Joe Pham <djpham@bitpim.org> 
 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  ### $Id: com_lgvx5400.py 4472 2007-11-29 03:58:54Z djpham $ 
11   
12  """ 
13  Communicate with the LG VX5400 cell phone 
14  """ 
15   
16  import common 
17  import com_lgvx8550 
18  import p_lgvx8550 
19   
20  p_lgvx5400=p_lgvx8550 
21  parentphone=com_lgvx8550.Phone 
22 -class Phone(parentphone):
23 desc="LG-VX5400" 24 helpid=None 25 protocolclass=p_lgvx5400 26 serialsname='lgvx5400' 27 28 my_model='VX5400' 29 30 builtinringtones= ('Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'Door Bell', 'VZW Default Ringtone') + \ 31 tuple(['Ringtone '+`n` for n in range(1,13)]) + \ 32 ('No Ring',) 33 34 ringtonelocations= ( 35 # type index file default dir external dir max type index 36 ('ringers', 'dload/myringtone.dat','brew/mod/10889/ringtones', '', 100, 0x01, 100), 37 ( 'sounds', 'dload/mysound.dat', 'brew/mod/18067', '', 100, 0x02, None), 38 ) 39 40 wallpaperlocations= ( 41 # type index file default dir external dir max type Index 42 ( 'images', 'dload/image.dat', 'brew/mod/10888', '', 100, 0x00, 100), 43 )
44 45 parentprofile=com_lgvx8550.Profile
46 -class Profile(parentprofile):
47 phone_manufacturer='LG Electronics Inc' 48 phone_model='VX5400' 49 # inside screen resoluation 50 WALLPAPER_WIDTH=128 51 WALLPAPER_HEIGHT=160 52 53 ringtoneorigins=('ringers', 'sounds') 54 55 imageorigins={} 56 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images")) 57 58 # our targets are the same for all origins 59 imagetargets={} 60 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 61 {'width': 128, 'height': 160, 'format': "JPEG"})) 62 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 63 {'width': 96, 'height': 64, 'format': "JPEG"})) 64 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd", 65 {'width': 96, 'height': 64, 'format': "JPEG"})) 66 67 _supportedsyncs=( 68 ('phonebook', 'read', None), # all phonebook reading 69 ('calendar', 'read', None), # all calendar reading 70 ('wallpaper', 'read', None), # all wallpaper reading 71 ('ringtone', 'read', None), # all ringtone reading 72 ('call_history', 'read', None),# all call history list reading 73 ('sms', 'read', None), # all SMS list reading 74 ('memo', 'read', None), # all memo list reading 75 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 76 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 77 ('wallpaper', 'write', 'MERGE'), # merge and overwrite wallpaper 78 ('wallpaper', 'write', 'OVERWRITE'), 79 ('ringtone', 'write', 'MERGE'), # merge and overwrite ringtone 80 ('ringtone', 'write', 'OVERWRITE'), 81 ('sms', 'write', 'OVERWRITE'), # all SMS list writing 82 ('memo', 'write', 'OVERWRITE'), # all memo list writing 83 ('t9_udb', 'write', 'OVERWRITE'), 84 ) 85 if __debug__: 86 _supportedsyncs+=( 87 ('t9_udb', 'read', 'OVERWRITE'), 88 )
89