Package phones :: Module com_sanyo3200
[hide private]
[frames] | no frames]

Source Code for Module phones.com_sanyo3200

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2005 Stephen Wood <sawecw@users.sf.net> 
 4  ### Copyright (C) 2007 Yan Ke <yke@cmu.edu> 
 5  ### 
 6  ### This program is free software; you can redistribute it and/or modify 
 7  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 8  ### 
 9  ### $Id: com_sanyo3200.py 4086 2007-03-11 04:49:43Z yke $ 
10   
11  """Talk to the Sanyo SCP-3200 cell phone""" 
12  # standard modules 
13  import re 
14  import time 
15  import sha 
16   
17  # my modules 
18  import common 
19  import p_brew 
20  import p_sanyo8300 
21  import p_sanyo3200 
22  import com_brew 
23  import com_phone 
24  import com_sanyo 
25  import com_sanyomedia 
26  import com_sanyonewer 
27  import com_sanyo3100 
28  import com_sanyo8300 
29  import prototypes 
30  import bpcalendar 
31  import call_history 
32   
33  numbertypetab=( 'cell', 'home', 'office', 'pager', 
34                      'fax', 'data', 'none' ) 
35   
36 -class Phone(com_sanyo3100.Phone):
37 "Talk to the Sanyo SCP-3200 cell phone" 38 39 desc="SCP-3200" 40 # WOrking directories 1,2,4 41 FIRST_MEDIA_DIRECTORY=1 42 LAST_MEDIA_DIRECTORY=2 43 44 imagelocations=( 45 # offset, directory #, indexflag, type, maximumentries 46 ) 47 48 protocolclass=p_sanyo3200 49 serialsname='scp3200' 50 51 builtinringtones=( 'None', 'Vibrate', '', '', '', '', '', '', '', 52 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 53 'Tone 6', 'Tone 7', 'Tone 8', 54 '', '', '', '', '', 55 '', '', '', 56 '', '', '', '', 57 'Hungarian Dance No.5', 'Asian Jingle', 58 'Ska Big Band', 'Habanera', 'Clair de Lune', 59 'Nocturne', 'Techno Beat', 'Jazz Melody','','','','','','','','','','','','','','','','','','','Ringer & Voice') 60 61 calendar_defaultringtone=4 62 calendar_defaultcaringtone=4 63
64 - def __init__(self, logtarget, commport):
65 com_sanyo8300.Phone.__init__(self, logtarget, commport) 66 self.mode=self.MODENONE 67 self.numbertypetab=numbertypetab
68 69 # Phone Detection----------------------------------------------------------- 70 my_model='SCP3200' 71 detected_model='SCP-3200/US' 72 my_manufacturer='SANYO'
73 74 parentprofile=com_sanyo3100.Profile
75 -class Profile(parentprofile):
76 77 protocolclass=Phone.protocolclass 78 serialsname=Phone.serialsname 79 phone_manufacturer=Phone.my_manufacturer 80 phone_model=Phone.my_model 81 82 _supportedsyncs=( 83 ('phonebook', 'read', None), # all phonebook reading 84 ('calendar', 'read', None), # all calendar reading 85 # ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 86 # ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 87 ('wallpaper', 'read', None), # all wallpaper reading 88 # ('ringtone', 'read', None), # all ringtone reading 89 ('call_history', 'read', None),# all call history list reading 90 # ('sms', 'read', None), # Read sms messages 91 ('todo', 'read', None), # Read todos 92 ) 93
94 - def __init__(self):
95 parentprofile.__init__(self) 96 com_sanyonewer.Profile.__init__(self) 97 self.numbertypetab=numbertypetab
98