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

Source Code for Module phones.com_sanyo6650

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2007 Stephen Wood <sawecw@users.sf.net> 
 4  ### 
 5  ### This program is free software; you can redistribute it and/or modify 
 6  ### it under the terms of the BitPim license as detailed in the LICENSE file. 
 7  ### 
 8  ### $Id$ 
 9   
10  """Talk to the Sanyo Katana-II (SCP-6650) cell phone""" 
11  # standard modules 
12  import re 
13  import time 
14  import sha 
15   
16  # my modules 
17  import common 
18  import p_brew 
19  import p_sanyo8300 
20  import p_sanyo4930 
21  import p_sanyo6600 
22  import p_sanyo6650 
23  import com_brew 
24  import com_phone 
25  import com_sanyo 
26  import com_sanyomedia 
27  import com_sanyonewer 
28  import com_sanyo3100 
29  import com_sanyo6600 
30  import prototypes 
31  import bpcalendar 
32   
33  numbertypetab=( 'cell', 'home', 'office', 'pager', 
34                      'fax', 'none') 
35   
36 -class Phone(com_sanyo6600.Phone):
37 "Talk to the Sanyo Katana-II (SCP-6650) cell phone" 38 39 desc="SCP-6650" 40 41 FIRST_MEDIA_DIRECTORY=1 42 LAST_MEDIA_DIRECTORY=2 43 44 imagelocations=( 45 # offset, directory #, indexflag, type, maximumentries 46 ) 47 wallpaperexts=(".jpg", ".png", ".mp4", ".3g2",".JPG") 48 49 50 protocolclass=p_sanyo6650 51 serialsname='scp6650' 52 53 builtinringtones=( 'None', 'Vibrate', '', '', '', '', '', '', '', 54 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 55 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 56 '', '', '', '', 57 'Requiem:Dies Irae', 'Minute Waltz', 'Hungarian Dance', 58 'Military March', 'Ten Little Indians', 59 'Head,Shoulders,Knees&Toes', 'The Moment', 'Asian Jingle', 60 'Kung-fu','','','','','','','','','','','','','','','','','', 61 '','','','','','', 62 'Voice Alarm') 63 64 65 calendar_defaultringtone=0 66 calendar_defaultcaringtone=0 67 calendar_toneoffset=33 68 calendar_tonerange=xrange(4,100) 69
70 - def __init__(self, logtarget, commport):
71 com_sanyo6600.Phone.__init__(self, logtarget, commport) 72 self.mode=self.MODENONE 73 self.numbertypetab=numbertypetab
74 75 my_model='SCP6650' 76 detected_model='SCP-6650/US' 77 my_manufacturer='SANYO'
78 79 parentprofile=com_sanyo6600.Profile
80 -class Profile(parentprofile):
81 82 protocolclass=Phone.protocolclass 83 serialsname=Phone.serialsname 84 phone_manufacturer=Phone.my_manufacturer 85 phone_model=Phone.my_model 86 87 usbids=( ( 0x0474, 0x0745, 2),) # VID=Sanyo, 88 deviceclasses=("serial",) 89
90 - def __init__(self):
91 parentprofile.__init__(self) 92 com_sanyonewer.Profile.__init__(self) 93 self.numbertypetab=numbertypetab
94