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

Source Code for Module phones.com_samsungspha680

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C)  Stephen Wood <saw@bitpim.org> 
 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_samsungspha680.py 3460 2006-07-08 23:55:09Z djpham $ 
 9   
10  """Communicate with a Samsung SPH-A680""" 
11   
12  import sha 
13  import re 
14  import struct 
15   
16  import common 
17  import commport 
18  import p_brew 
19  import p_samsungspha620 
20  import p_samsungspha680 
21  import com_brew 
22  import com_phone 
23  import com_samsung_packet 
24  import com_samsungspha620 
25  import prototypes 
26   
27  numbertypetab=('home','office','cell','pager','fax','none') 
28   
29 -class Phone(com_samsungspha620.Phone):
30 "Talk to a Samsung SPH-A680 phone" 31 32 desc="SPH-A680" 33 34 protocolclass=p_samsungspha680 35 serialsname='spha680' 36 37 # jpeg Remove first 124 characters 38 39 imagelocations=( 40 # offset, index file, files location, origin, maximumentries, header offset 41 # Offset is arbitrary. 100 is reserved for amsRegistry indexed files 42 (300, "cam/jpeg", "camera", 100, 124), 43 (400, "cam/dldJpeg", "camera", 100, 124), 44 (500, "cam/mjpeg", "camera", 100, 124), 45 (600, "cam/dldMjpeg", "camera", 100, 124), 46 ) 47 48 ringtonelocations=( 49 # offset, index file, files location, type, maximumentries, header offset 50 ) 51 52
53 - def __init__(self, logtarget, commport):
54 com_samsungspha620.Phone.__init__(self, logtarget, commport) 55 self.numbertypetab=numbertypetab 56 self.mode=self.MODENONE
57 58 parentprofile=com_samsungspha620.Profile
59 -class Profile(parentprofile):
60 deviceclasses=("modem",) 61 62 protocolclass=Phone.protocolclass 63 serialsname=Phone.serialsname 64 phone_manufacturer='SAMSUNG' 65 phone_model='SPH-A680/152' 66
67 - def __init__(self):
68 parentprofile.__init__(self) 69 self.numbertypetab=numbertypetab
70