Package phones ::
Module com_samsungspha640
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14 """Communicate with a Samsung SPH-A640"""
15
16 import sha
17 import re
18 import struct
19
20 import common
21 import commport
22 import p_samsungspha640
23 import p_brew
24 import com_brew
25 import com_phone
26 import com_samsung_packet
27 import com_samsungspha620
28 import prototypes
29 import fileinfo
30 import helpids
31
32 numbertypetab=('home','cell','office','other','pager','none')
33
34 -class Phone(com_samsungspha620.Phone):
35 "Talk to a Samsung SPH-A640 phone"
36
37 desc="SPH-A640"
38 helpid=helpids.ID_PHONE_SAMSUNGOTHERS
39 protocolclass=p_samsungspha640
40 serialsname='spha640'
41
42
43
44 imagelocations=(
45
46
47 (400, "cam/dldJpeg", "camera", 100, 128),
48 (300, "cam/jpeg", "camera", 100, 128),
49 )
50
51 ringtonelocations=(
52
53 )
54
55 __audio_mimetype={ 'mid': 'audio/midi', 'qcp': 'audio/vnd.qcelp', 'pmd': 'application/x-pmd'}
56 __image_mimetype={ 'jpg': 'image/jpg', 'jpeg': 'image/jpeg', 'gif': 'image/gif', 'bmp': 'image/bmp', 'png': 'image/png'}
57
58 - def __init__(self, logtarget, commport):
62
63 parentprofile=com_samsungspha620.Profile
65 protocolclass=Phone.protocolclass
66 serialsname=Phone.serialsname
67
68 MAX_RINGTONE_BASENAME_LENGTH=19
69 RINGTONE_FILENAME_CHARS="abcdefghijklmnopqrstuvwxyz0123456789_ ."
70 RINGTONE_LIMITS= {
71 'MAXSIZE': 500000
72 }
73 phone_manufacturer='SAMSUNG'
74 phone_model='SPH-A640/152'
75
79
80 _supportedsyncs=(
81 ('phonebook', 'read', None),
82
83 ('wallpaper', 'read', None),
84 ('wallpaper', 'write', None),
85 ('ringtone', 'read', None),
86 ('ringtone', 'write', None),
87 ('calendar', 'read', None),
88 ('calendar', 'write', 'OVERWRITE'),
89 ('todo', 'read', None),
90 ('todo', 'write', 'OVERWRITE'),
91 ('memo', 'read', None),
92 ('memo', 'write', 'OVERWRITE'),
93 )
94