Package phones ::
Module com_lgvx5400
|
|
1
2
3
4
5
6
7
8
9
10
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
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
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
42 ( 'images', 'dload/image.dat', 'brew/mod/10888', '', 100, 0x00, 100),
43 )
44
45 parentprofile=com_lgvx8550.Profile
47 phone_manufacturer='LG Electronics Inc'
48 phone_model='VX5400'
49
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
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),
69 ('calendar', 'read', None),
70 ('wallpaper', 'read', None),
71 ('ringtone', 'read', None),
72 ('call_history', 'read', None),
73 ('sms', 'read', None),
74 ('memo', 'read', None),
75 ('phonebook', 'write', 'OVERWRITE'),
76 ('calendar', 'write', 'OVERWRITE'),
77 ('wallpaper', 'write', 'MERGE'),
78 ('wallpaper', 'write', 'OVERWRITE'),
79 ('ringtone', 'write', 'MERGE'),
80 ('ringtone', 'write', 'OVERWRITE'),
81 ('sms', 'write', 'OVERWRITE'),
82 ('memo', 'write', 'OVERWRITE'),
83 ('t9_udb', 'write', 'OVERWRITE'),
84 )
85 if __debug__:
86 _supportedsyncs+=(
87 ('t9_udb', 'read', 'OVERWRITE'),
88 )
89