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_samsungspha840.py 3918 2007-01-19 05:15:12Z djpham $ 0009 0010 """Communicate with a Samsung SPH-A840""" 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_samsungspha840 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=('cell','home','office','pager','fax','none') 0029 0030 class Phone(com_samsungspha620.Phone): 0031 "Talk to a Samsung SPH-A840 phone" 0032 0033 desc="SPH-A840" 0034 helpid=helpids.ID_PHONE_SAMSUNGOTHERS 0035 protocolclass=p_samsungspha840 0036 serialsname='spha840' 0037 0038 # jpeg Remove first 124 characters 0039 0040 imagelocations=( 0041 # offset, index file, files location, origin, maximumentries, header offset 0042 # Offset is arbitrary. 100 is reserved for amsRegistry indexed files 0043 (400, "cam/dldJpeg", "camera", 100, 124), 0044 (300, "cam/jpeg", "camera", 100, 124), 0045 ) 0046 0047 ringtonelocations=( 0048 # offset, index file, files location, type, maximumentries, header offset 0049 ) 0050 0051 0052 def __init__(self, logtarget, commport): 0053 com_samsungspha620.Phone.__init__(self, logtarget, commport) 0054 self.numbertypetab=numbertypetab 0055 self.mode=self.MODENONE 0056 0057 parentprofile=com_samsungspha620.Profile 0058 class Profile(parentprofile): 0059 deviceclasses=("modem",) 0060 0061 protocolclass=Phone.protocolclass 0062 serialsname=Phone.serialsname 0063 phone_manufacturer='SAMSUNG' 0064 phone_model='SPH-A840/152' 0065 0066 def __init__(self): 0067 parentprofile.__init__(self) 0068 self.numbertypetab=numbertypetab 0069 0070 0071
Generated by PyXR 0.9.4