Package phones ::
Module com_lgpm325
|
|
1
2
3
4
5
6
7
8
9
10 """Communicate with the LG LX325/PM325 (Sprint) cell phone"""
11
12
13 import re
14 import time
15 import cStringIO
16 import sha
17
18
19 import p_lgpm225
20 import p_lgpm325
21 import p_brew
22 import common
23 import commport
24 import com_brew
25 import com_phone
26 import com_lg
27 import com_lgpm225
28 import prototypes
29 import call_history
30 import sms
31 import fileinfo
32 import memo
33
34 -class Phone(com_lgpm225.Phone):
35 "Talk to the LG LX325/PM325 cell phone"
36
37 desc="LG PM325"
38 helpid=None
39 protocolclass=p_lgpm325
40 serialsname='lgpm325'
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
55
56 builtinimages=( )
57
58 builtinringtones=( 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 'Tone 6',
59 'Alert 1', 'Alert 2', 'Alert 3', 'Alert 4', 'Alert 5', 'Alert 6',
60 'Jazztic', 'Rock & Roll', 'Grand Waltz', 'Toccata and Fugue',
61 'Sunday Afternoon', 'Bumble Bee', 'Circus Band', 'Cuckoo Waltz',
62 'Latin', 'CanCan', 'Play tag', 'Eine kleine Nachtmusik',
63 'Symphony No.25 in G Minor', 'Capriccio a minor', 'Moonlight',
64 'A Nameless Girl', 'From the New World', 'They Called Me Elvis')
65
66 - def __init__(self, logtarget, commport):
75
76
77
78
79 brew_version_file='ams/version.txt'
80 brew_version_txt_key='ams_version.txt'
81 my_model='LX325'
82
83
84 parentprofile=com_lgpm225.Profile
86 protocolclass=Phone.protocolclass
87 serialsname=Phone.serialsname
88 BP_Calendar_Version=3
89 phone_manufacturer='LG Electronics Inc'
90 phone_model='LX325'
91 brew_required=True
92
93 DIALSTRING_CHARS="[^0-9PT#*]"
94
95
96 _supportedsyncs=(
97 ('phonebook', 'read', None),
98 ('calendar', 'read', None),
99 ('wallpaper', 'read', None),
100 ('ringtone', 'read', None),
101 ('call_history', 'read', None),
102 ('memo', 'read', None),
103 ('sms', 'read', None),
104 ('phonebook', 'write', 'OVERWRITE'),
105 ('calendar', 'write', 'OVERWRITE'),
106 ('wallpaper', 'write', 'MERGE'),
107 ('wallpaper', 'write', 'OVERWRITE'),
108 ('ringtone', 'write', 'MERGE'),
109 ('ringtone', 'write', 'OVERWRITE'),
110 ('memo', 'write', 'OVERWRITE'),
111 ('sms', 'write', 'OVERWRITE'),
112 )
113