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

Source Code for Module phones.com_samsungspha740

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2005 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_samsungspha740.py 3918 2007-01-19 05:15:12Z djpham $ 
 9   
10  """Communicate with a Samsung SPH-A740""" 
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_samsungspha740 
21  import com_brew 
22  import com_phone 
23  import com_samsung_packet 
24  import com_samsungspha620 
25  import prototypes 
26  import helpids 
27   
28  numbertypetab=('home','office','cell','pager','fax','none') 
29   
30 -class Phone(com_samsungspha620.Phone):
31 "Talk to a Samsung SPH-A740 phone" 32 33 desc="SPH-A740" 34 helpid=helpids.ID_PHONE_SAMSUNGOTHERS 35 protocolclass=p_samsungspha740 36 serialsname='spha740' 37 38 # jpeg Remove first 124 characters 39 40 imagelocations=( 41 # offset, index file, files location, origin, maximumentries, header offset 42 # Offset is arbitrary. 100 is reserved for amsRegistry indexed files 43 (400, "cam/dldJpeg", "camera", 100, 124), 44 (300, "cam/jpeg", "camera", 100, 124), 45 ) 46 47 ringtonelocations=( 48 # offset, index file, files location, type, maximumentries, header offset 49 ) 50 51
52 - def __init__(self, logtarget, commport):
53 com_samsungspha620.Phone.__init__(self, logtarget, commport) 54 self.numbertypetab=numbertypetab 55 self.mode=self.MODENONE
56 57 parentprofile=com_samsungspha620.Profile
58 -class Profile(parentprofile):
59 deviceclasses=("modem",) 60 61 protocolclass=Phone.protocolclass 62 serialsname=Phone.serialsname 63 phone_manufacturer='SAMSUNG' 64 phone_model='SPH-A740/152' 65
66 - def __init__(self):
67 parentprofile.__init__(self) 68 self.numbertypetab=numbertypetab
69