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

Source Code for Module phones.com_sanyo7500

  1  ### BITPIM 
  2  ### 
  3  ### Copyright (C) 2006 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: com_sanyo7500.py 4598 2008-02-24 04:59:42Z sawecw $ 
  9   
 10  """Talk to the Sanyo MM-7500 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_sanyo7500 
 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 prototypes 
 29  import bpcalendar 
 30   
 31  numbertypetab=( 'cell', 'home', 'office', 'pager', 
 32                      'fax', 'data', 'none' ) 
 33   
34 -class Phone(com_sanyo3100.Phone):
35 "Talk to the Sanyo MM-7500 cell phone" 36 37 desc="MM-7500" 38 39 FIRST_MEDIA_DIRECTORY=1 40 LAST_MEDIA_DIRECTORY=3 41 42 imagelocations=( 43 # offset, directory #, indexflag, type, maximumentries 44 ) 45 46 protocolclass=p_sanyo7500 47 serialsname='mm7500' 48 49 builtinringtones=( 'None', 'Vibrate', 'Ringer & Voice', '', '', '', '', '', '', 50 'Tone 1', 'Tone 2', 'Tone 3', 'Tone 4', 'Tone 5', 51 'Tone 6', 'Tone 7', 'Tone 8', '', '', '', '', '', 52 '', '', '', '', '', '', '', 53 'Tschaik.Swanlake', 'Satie Gymnop.#1', 54 'Hungarian Dance', 'Beethoven Sym.5', 'Greensleeves', 55 'Foster Ky. Home', 'The Moment', 'Asian Jingle', 56 'Disco') 57 58 calendar_defaultringtone=0 59 calendar_defaultcaringtone=0 60
61 - def __init__(self, logtarget, commport):
62 com_sanyo3100.Phone.__init__(self, logtarget, commport) 63 self.mode=self.MODENONE 64 self.numbertypetab=numbertypetab
65 66 my_model='SCP7500' 67 detected_model='SCP-7500/US' 68 my_manufacturer='SANYO'
69 70 parentprofile=com_sanyo3100.Profile
71 -class Profile(parentprofile):
72 73 protocolclass=Phone.protocolclass 74 serialsname=Phone.serialsname 75 phone_manufacturer=Phone.my_manufacturer 76 phone_model=Phone.my_model 77 78 WALLPAPER_WIDTH=176 79 WALLPAPER_HEIGHT=220 80 81 # which usb ids correspond to us 82 83 _supportedsyncs=( 84 ('phonebook', 'read', None), # all phonebook reading 85 ('calendar', 'read', None), # all calendar reading 86 ('phonebook', 'write', 'OVERWRITE'), # only overwriting phonebook 87 ('calendar', 'write', 'OVERWRITE'), # only overwriting calendar 88 #('wallpaper', 'write', 'MERGE'), 89 #('ringtone', 'write', 'MERGE'), 90 ('wallpaper', 'read', None), # all wallpaper reading 91 ('ringtone', 'read', None), # all ringtone reading 92 #('call_history', 'read', None),# all call history list reading 93 ('sms', 'read', None), # Read sms messages 94 ('todo', 'read', None), # Read todos 95 ) 96
97 - def __init__(self):
98 parentprofile.__init__(self) 99 com_sanyonewer.Profile.__init__(self) 100 self.numbertypetab=numbertypetab
101