0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2007 Stephen Wood <sawecw@users.sf.net> 0004 ### 0005 ### This program is free software; you can redistribute it and/or modify 0006 ### it under the terms of the BitPim license as detailed in the LICENSE file. 0007 ### 0008 ### $Id:$ 0009 0010 """Talk to the Sanyo Katana (SCP-8400) cell phone""" 0011 # standard modules 0012 import re 0013 import time 0014 import sha 0015 0016 # my modules 0017 import common 0018 import p_brew 0019 import p_sanyo8300 0020 import p_sanyo4930 0021 import p_sanyo6600 0022 import p_sanyo7050 0023 import p_sanyo8400 0024 import com_brew 0025 import com_phone 0026 import com_sanyo 0027 import com_sanyomedia 0028 import com_sanyonewer 0029 import com_sanyo3100 0030 import com_sanyo6600 0031 import com_sanyo7050 0032 import prototypes 0033 import bpcalendar 0034 0035 numbertypetab=( 'cell', 'home', 'office', 'pager', 0036 'fax', 'none') 0037 0038 class Phone(com_sanyo7050.Phone): 0039 "Talk to the Sanyo Katana (SCP-8400) cell phone" 0040 0041 desc="SCP-8400" 0042 0043 FIRST_MEDIA_DIRECTORY=1 0044 LAST_MEDIA_DIRECTORY=2 0045 0046 imagelocations=( 0047 # offset, directory #, indexflag, type, maximumentries 0048 ) 0049 wallpaperexts=(".jpg", ".png", ".mp4", ".3g2",".JPG") 0050 0051 0052 protocolclass=p_sanyo8400 0053 serialsname='scp8400' 0054 0055 builtinringtones=( 'None', 'Vibrate', '', '', '', '', '', '', '', 0056 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 0057 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 0058 '', '', '', '', 0059 'Requiem:Dies Irae', 'Minute Waltz', 'Hungarian Dance', 0060 'Military March', 'Ten Little Indians', 0061 'Head,Shoulders,Knees&Toes', 'The Moment', 'Asian Jingle', 0062 'Kung-fu','','','','','','','','','','','','','','','','','', 0063 '','','','','','', 0064 'Voice Alarm') 0065 0066 0067 calendar_defaultringtone=0 0068 calendar_defaultcaringtone=0 0069 calendar_toneoffset=33 0070 calendar_tonerange=xrange(4,100) 0071 0072 def __init__(self, logtarget, commport): 0073 com_sanyo7050.Phone.__init__(self, logtarget, commport) 0074 self.mode=self.MODENONE 0075 self.numbertypetab=numbertypetab 0076 0077 my_model='SCP-8400/US' 0078 detected_model='SCP-8400/US' 0079 my_manufacturer='SANYO' 0080 0081 parentprofile=com_sanyo7050.Profile 0082 class Profile(parentprofile): 0083 0084 protocolclass=Phone.protocolclass 0085 serialsname=Phone.serialsname 0086 phone_manufacturer=Phone.my_manufacturer 0087 phone_model=Phone.my_model 0088 0089 usbids=( ( 0x0474, 0x071F, 1),) # VID=Sanyo, 0090 deviceclasses=("serial",) 0091 0092 def __init__(self): 0093 parentprofile.__init__(self) 0094 com_sanyonewer.Profile.__init__(self) 0095 self.numbertypetab=numbertypetab 0096 0097
Generated by PyXR 0.9.4