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

Source Code for Module phones.com_sanyo8400

 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 (SCP-8400) 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_sanyo7050 
23  import p_sanyo8400 
24  import com_brew 
25  import com_phone 
26  import com_sanyo 
27  import com_sanyomedia 
28  import com_sanyonewer 
29  import com_sanyo3100 
30  import com_sanyo6600 
31  import com_sanyo7050 
32  import prototypes 
33  import bpcalendar 
34   
35  numbertypetab=( 'cell', 'home', 'office', 'pager', 
36                      'fax', 'none') 
37   
38 -class Phone(com_sanyo7050.Phone):
39 "Talk to the Sanyo Katana (SCP-8400) cell phone" 40 41 desc="SCP-8400" 42 43 FIRST_MEDIA_DIRECTORY=1 44 LAST_MEDIA_DIRECTORY=2 45 46 imagelocations=( 47 # offset, directory #, indexflag, type, maximumentries 48 ) 49 wallpaperexts=(".jpg", ".png", ".mp4", ".3g2",".JPG") 50 51 52 protocolclass=p_sanyo8400 53 serialsname='scp8400' 54 55 builtinringtones=( 'None', 'Vibrate', '', '', '', '', '', '', '', 56 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 57 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 58 '', '', '', '', 59 'Requiem:Dies Irae', 'Minute Waltz', 'Hungarian Dance', 60 'Military March', 'Ten Little Indians', 61 'Head,Shoulders,Knees&Toes', 'The Moment', 'Asian Jingle', 62 'Kung-fu','','','','','','','','','','','','','','','','','', 63 '','','','','','', 64 'Voice Alarm') 65 66 67 calendar_defaultringtone=0 68 calendar_defaultcaringtone=0 69 calendar_toneoffset=33 70 calendar_tonerange=xrange(4,100) 71
72 - def __init__(self, logtarget, commport):
73 com_sanyo7050.Phone.__init__(self, logtarget, commport) 74 self.mode=self.MODENONE 75 self.numbertypetab=numbertypetab
76 77 my_model='SCP-8400/US' 78 detected_model='SCP-8400/US' 79 my_manufacturer='SANYO'
80 81 parentprofile=com_sanyo7050.Profile
82 -class Profile(parentprofile):
83 84 protocolclass=Phone.protocolclass 85 serialsname=Phone.serialsname 86 phone_manufacturer=Phone.my_manufacturer 87 phone_model=Phone.my_model 88 89 usbids=( ( 0x0474, 0x071F, 1),) # VID=Sanyo, 90 deviceclasses=("serial",) 91
92 - def __init__(self):
93 parentprofile.__init__(self) 94 com_sanyonewer.Profile.__init__(self) 95 self.numbertypetab=numbertypetab
96