Package phones ::
Module com_sanyo8100
|
|
1
2
3
4
5
6
7
8
9
10 """Talk to the Sanyo SCP-8100 cell phone"""
11
12
13 import common
14 import p_sanyo8100
15 import com_sanyomedia
16 import com_sanyo
17 import com_brew
18 import com_phone
19 import prototypes
20
21 import os
22
23 -class Phone(com_sanyomedia.SanyoMedia,com_sanyo.Phone):
24 "Talk to the Sanyo SCP-8100 cell phone"
25
26 desc="SCP-8100"
27
28 FIRST_MEDIA_DIRECTORY=1
29 LAST_MEDIA_DIRECTORY=3
30
31 protocolclass=p_sanyo8100
32 serialsname='scp8100'
33
34 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '',
35 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5',
36 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '',
37 '', '', '', '', '', '', '',
38 'Tschaik.Swanlake', 'Satie Gymnop.#1',
39 'Bach Air on the G', 'Beethoven Sym.5', 'Greensleeves',
40 'Johnny Comes..', 'Foster Ky. Home', 'Asian Jingle',
41 'Disco' )
42
43 calendar_defaultringtone=4
44 calendar_defaultcaringtone=4
45 calendar_tonerange=xrange(18,26)
46 calendar_toneoffset=8
47
48 - def __init__(self, logtarget, commport):
52
54
55 protocolclass=Phone.protocolclass
56 serialsname=Phone.serialsname
57 phone_manufacturer='SANYO'
58 phone_model='SCP-8100/US'
59
60
61 WALLPAPER_WIDTH=132
62 WALLPAPER_HEIGHT=144
63 OVERSIZE_PERCENTAGE=100
64
65 _supportedsyncs=(
66 ('phonebook', 'read', None),
67 ('calendar', 'read', None),
68 ('phonebook', 'write', 'OVERWRITE'),
69 ('calendar', 'write', 'OVERWRITE'),
70 ('wallpaper', 'write', 'MERGE'),
71 ('ringtone', 'write', 'MERGE'),
72 ('wallpaper', 'read', None),
73 ('ringtone', 'read', None),
74 ('call_history', 'read', None),
75 ('sms', 'read', None),
76 )
77
80