Package phones ::
Module com_lglg6200
|
|
1
2
3
4
5
6
7
8
9 """Communicate with the LG 6200 (Sprint) cell phone"""
10
11
12 import re
13 import time
14 import cStringIO
15 import sha
16
17
18 import p_lglg6200
19 import p_brew
20 import common
21 import commport
22 import com_brew
23 import com_phone
24 import com_lg
25 import com_lgvx4400
26 import com_lgpm225
27 import prototypes
28 import call_history
29 import sms
30 import fileinfo
31 import memo
32
33
34 -class Phone(com_lgpm225.Phone):
35 "Talk to the LG 6200 cell phone"
36
37 desc="LG 6200"
38 helpid=None
39 protocolclass=p_lglg6200
40 serialsname='lg6200'
41
42
43
44 imagelocations=(
45
46 (0x600, "setas/dcamIndex.map", "Dcam/Wallet", "camera", 50, 6),
47 )
48
49 ringtonelocations=(
50
51 (0x1100, "setas/voicememoRingerIndex.map", "VoiceDB/All/Memos", "voice_memo", 50, 11),
52 )
53
54 builtinimages=()
55
56 builtinringtones=( 'Ring 1', 'Ring 2', 'Ring 3', 'Ring 4', 'Ring 5', 'Ring 6',
57 'Alert 1', 'Alert 2', 'Alert 3', 'Alert 4', 'Alert 5', 'Alert 6',
58 'Jazztic', 'Rock & Roll', 'Grand waltz', 'Toccata and Fugue',
59 'Sunday afternoon', 'Bumble bee', 'Circus band', 'Cuckoo waltz',
60 'Latin', 'CanCan', 'Play tag', 'Eine kleine Nacht', 'Symphony No.25 in G Minor',
61 'Capriccio a minor', 'Moon light', 'A nameless girl', 'From the new world',
62 'They called me Elvis')
63
64 - def __init__(self, logtarget, commport):
73
74
75
76
77
78 brew_version_file='nvm/nvm/nvm_lg_param'
79 brew_version_txt_key='LG6200_version_data'
80 my_model='LG_LG6200'
81
92
108
109
110 parentprofile=com_lgpm225.Profile
112 protocolclass=Phone.protocolclass
113 serialsname=Phone.serialsname
114 BP_Calendar_Version=3
115 phone_manufacturer='LG Electronics Inc'
116 phone_model='LG_LG6200'
117 brew_required=True
118 RINGTONE_LIMITS= {
119 'MAXSIZE': 250000
120 }
121
122 WALLPAPER_WIDTH=160
123 WALLPAPER_HEIGHT=120
124 MAX_WALLPAPER_BASENAME_LENGTH=30
125 WALLPAPER_FILENAME_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-_"
126 WALLPAPER_CONVERT_FORMAT="jpg"
127
128 MAX_RINGTONE_BASENAME_LENGTH=30
129 RINGTONE_FILENAME_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-_"
130 DIALSTRING_CHARS="[^0-9PT#*]"
131
132
133 imagetargets={}
134 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
135 {'width': 128, 'height': 160, 'format': "JPEG"}))
136
137 _supportedsyncs=(
138 ('phonebook', 'read', None),
139 ('calendar', 'read', None),
140 ('wallpaper', 'read', None),
141 ('ringtone', 'read', None),
142 ('call_history', 'read', None),
143 ('memo', 'read', None),
144 ('sms', 'read', None),
145 ('phonebook', 'write', 'OVERWRITE'),
146 ('calendar', 'write', 'OVERWRITE'),
147 ('wallpaper', 'write', 'MERGE'),
148 ('wallpaper', 'write', 'OVERWRITE'),
149 ('ringtone', 'write', 'MERGE'),
150 ('ringtone', 'write', 'OVERWRITE'),
151 ('memo', 'write', 'OVERWRITE'),
152 ('sms', 'write', 'OVERWRITE'),
153 )
154