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

Source Code for Module phones.com_samsungspha660

 1  ### BITPIM 
 2  ### 
 3  ### Copyright (C) 2006 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_samsungspha660.py 3918 2007-01-19 05:15:12Z djpham $ 
 9   
10  """Communicate with a Samsung SPH-A620""" 
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_samsungspha660 
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-A660 phone" 32 33 desc="SPH-A660" 34 helpid=helpids.ID_PHONE_SAMSUNGOTHERS 35 protocolclass=p_samsungspha660 36 serialsname='spha660' 37 38 imagelocations=( 39 # offset, index file, files location, origin, maximumentries, header offset 40 ) 41 42 ringtonelocations=( 43 # offset, index file, files location, type, maximumentries, header offset 44 ) 45 46
47 - def __init__(self, logtarget, commport):
48 com_samsungspha620.Phone.__init__(self, logtarget, commport) 49 self.numbertypetab=numbertypetab 50 self.mode=self.MODENONE
51 52 parentprofile=com_samsungspha620.Profile
53 -class Profile(parentprofile):
54 deviceclasses=("modem",) 55 56 protocolclass=Phone.protocolclass 57 serialsname=Phone.serialsname 58 phone_manufacturer='SAMSUNG' 59 phone_model='SPH-A660/152' 60
61 - def __init__(self):
62 parentprofile.__init__(self) 63 self.numbertypetab=numbertypetab
64