Package phones ::
Module com_lgvx8560
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13 """
14 Communicate with the LG VX8560 cell phone. (aka VX8610)
15 """
16
17
18 import common
19 import com_brew
20 import prototypes
21 import com_lgvx9700
22 import p_lgvx8560
23 import helpids
24
25
26 parentphone=com_lgvx9700.Phone
28 desc="LG-VX8560 (Chocolate 3)"
29 protocolclass=p_lgvx8560
30 serialsname='lgvx8560'
31 helpid=helpids.ID_PHONE_LGVX8560
32
33 my_model='VX8560'
34
35 builtinringtones= ('Low Beep Once', 'Low Beeps', 'Loud Beep Once', 'Loud Beeps', 'Door Bell', 'VZW Default Ringtone') + \
36 tuple(['Ringtone '+`n` for n in range(1,21)]) + \
37 ('No Ring',)
38
40 self._DMv5 = False
41 self._DMv6 = True
42 self._timeout=5
43
44
45
46
47
48
49
50
51
52
53
55 data.serial_number = '000000ca-00000000-00000000-' + fwversion
56 data.unknown3 = 0x01fa
57
58
59 parentprofile=com_lgvx9700.Profile
61 protocolclass=Phone.protocolclass
62 serialsname=Phone.serialsname
63
64 BP_Calendar_Version=3
65 phone_manufacturer='LG Electronics Inc'
66 phone_model='VX8560'
67
68 WALLPAPER_WIDTH = 240
69 WALLPAPER_HEIGHT = 320
70
71 imageorigins={}
72 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images"))
73 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video"))
74 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "images(sd)"))
75 imageorigins.update(common.getkv(parentprofile.stockimageorigins, "video(sd)"))
76
77
78 imagetargets={}
79 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "outsidelcd",
80 {'width': 176, 'height': 220, 'format': "JPEG"}))
81 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
82 {'width': 240, 'height': 320, 'format': "JPEG"}))
83 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid",
84 {'width': 120, 'height': 100, 'format': "JPEG"}))
85
86 _supportedsyncs=(
87 ('phonebook', 'read', None),
88 ('calendar', 'read', None),
89 ('wallpaper', 'read', None),
90 ('ringtone', 'read', None),
91 ('call_history', 'read', None),
92 ('sms', 'read', None),
93 ('memo', 'read', None),
94 ('phonebook', 'write', 'OVERWRITE'),
95 ('calendar', 'write', 'OVERWRITE'),
96 ('wallpaper', 'write', 'MERGE'),
97 ('wallpaper', 'write', 'OVERWRITE'),
98 ('ringtone', 'write', 'MERGE'),
99 ('ringtone', 'write', 'OVERWRITE'),
100 ('sms', 'write', 'OVERWRITE'),
101 ('memo', 'write', 'OVERWRITE'),
102
103
104 ('t9_udb', 'write', 'OVERWRITE'),
105 )
106 if __debug__:
107 _supportedsyncs+=(
108 ('t9_udb', 'read', 'OVERWRITE'),
109 )
110