PyXR

c:\projects\bitpim\src \ phones \ com_samsungspha680.py



0001 ### BITPIM
0002 ###
0003 ### Copyright (C)  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_samsungspha680.py 3460 2006-07-08 23:55:09Z djpham $
0009 
0010 """Communicate with a Samsung SPH-A680"""
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_samsungspha680
0021 import com_brew
0022 import com_phone
0023 import com_samsung_packet
0024 import com_samsungspha620
0025 import prototypes
0026 
0027 numbertypetab=('home','office','cell','pager','fax','none')
0028 
0029 class Phone(com_samsungspha620.Phone):
0030     "Talk to a Samsung SPH-A680 phone"
0031 
0032     desc="SPH-A680"
0033 
0034     protocolclass=p_samsungspha680
0035     serialsname='spha680'
0036 
0037     # jpeg Remove first 124 characters
0038 
0039     imagelocations=(
0040         # offset, index file, files location, origin, maximumentries, header offset
0041         # Offset is arbitrary.  100 is reserved for amsRegistry indexed files
0042         (300, "cam/jpeg", "camera", 100, 124),
0043         (400, "cam/dldJpeg", "camera", 100, 124),
0044         (500, "cam/mjpeg", "camera", 100, 124),
0045         (600, "cam/dldMjpeg", "camera", 100, 124),
0046         )
0047 
0048     ringtonelocations=(
0049         # offset, index file, files location, type, maximumentries, header offset
0050         )
0051         
0052 
0053     def __init__(self, logtarget, commport):
0054         com_samsungspha620.Phone.__init__(self, logtarget, commport)
0055         self.numbertypetab=numbertypetab
0056         self.mode=self.MODENONE
0057 
0058 parentprofile=com_samsungspha620.Profile
0059 class Profile(parentprofile):
0060     deviceclasses=("modem",)
0061 
0062     protocolclass=Phone.protocolclass
0063     serialsname=Phone.serialsname
0064     phone_manufacturer='SAMSUNG'
0065     phone_model='SPH-A680/152'
0066 
0067     def __init__(self):
0068         parentprofile.__init__(self)
0069         self.numbertypetab=numbertypetab
0070 
0071 
0072 

Generated by PyXR 0.9.4