0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2006 Stephen Wood <saw@bitpim.org> 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: com_samsungspha660.py 3918 2007-01-19 05:15:12Z djpham $ 0009 0010 """Communicate with a Samsung SPH-A620""" 0011 0012 import sha 0013 import re 0014 import struct 0015 0016 import common 0017 import commport 0018 import p_brew 0019 import p_samsungspha620 0020 import p_samsungspha660 0021 import com_brew 0022 import com_phone 0023 import com_samsung_packet 0024 import com_samsungspha620 0025 import prototypes 0026 import helpids 0027 0028 numbertypetab=('home','office','cell','pager','fax','none') 0029 0030 class Phone(com_samsungspha620.Phone): 0031 "Talk to a Samsung SPH-A660 phone" 0032 0033 desc="SPH-A660" 0034 helpid=helpids.ID_PHONE_SAMSUNGOTHERS 0035 protocolclass=p_samsungspha660 0036 serialsname='spha660' 0037 0038 imagelocations=( 0039 # offset, index file, files location, origin, maximumentries, header offset 0040 ) 0041 0042 ringtonelocations=( 0043 # offset, index file, files location, type, maximumentries, header offset 0044 ) 0045 0046 0047 def __init__(self, logtarget, commport): 0048 com_samsungspha620.Phone.__init__(self, logtarget, commport) 0049 self.numbertypetab=numbertypetab 0050 self.mode=self.MODENONE 0051 0052 parentprofile=com_samsungspha620.Profile 0053 class Profile(parentprofile): 0054 deviceclasses=("modem",) 0055 0056 protocolclass=Phone.protocolclass 0057 serialsname=Phone.serialsname 0058 phone_manufacturer='SAMSUNG' 0059 phone_model='SPH-A660/152' 0060 0061 def __init__(self): 0062 parentprofile.__init__(self) 0063 self.numbertypetab=numbertypetab 0064 0065 0066
Generated by PyXR 0.9.4