Package phones :: Module com_samsung_packet :: Class Phone
[hide private]
[frames] | no frames]

Class Phone

source code

               object --+    
                        |    
          com_phone.Phone --+
                            |
com_brew.RealBrewProtocol --+
                            |
                           Phone
Known Subclasses:

Talk to a Samsung phone using AT commands

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
Call all the contructors and sets initial modes
source code
 
_setmodephonebooktobrew(self) source code
 
_setmodemodemtobrew(self) source code
 
_setmodebrewtomodem(self) source code
 
_setmodemodemtophonebook(self) source code
 
_setmodemodem(self) source code
 
_setmodephonebook(self) source code
 
_setmodephonebooktomodem(self) source code
 
sendpbcommand(self, request, responseclass, ignoreerror=False, fixup=None)
Similar to the sendpbcommand in com_sanyo and com_lg, except that a list of responses is returned, one per line of information returned from the phone
source code
 
get_esn(self) source code
 
get_model(self) source code
 
get_manufacturer(self) source code
 
get_battery_level(self) source code
 
read_groups(self) source code
 
savegroups(self, data)
Write the groups, sending only those groups that have had a name change.
source code
 
pblinerepair(self, line)
Repair a line from a phone with broken firmware
source code
 
getphonebook(self, result)
Read the phonebook data.
source code
 
_extractphonebook_numbers(self, entry, fundamentals, res)
Extract and build phone numbers
source code
 
_extractphonebook_ringtone(self, entry, fundamentals, res)
Extract ringtone info
source code
 
_extractphonebook_wallpaper(self, entry, fundamentals, res)
Extract wallpaper info
source code
 
extractphonebookentry(self, entry, fundamentals) source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
makeentry(self, entry, data) source code
 
getcalendar(self, result) source code
 
_set_unused_calendar_fields(self, entry) source code
 
process_calendar(self, dict)
Optimize and expand calendar data suitable for phone download
source code
 
savecalendar(self, dict, merge) source code
 
gettodo(self, result) source code
 
savetodo(self, dict, merge) source code
 
getmemo(self, result) source code
 
savememo(self, dict, merge) source code
 
getbasicinfo(self, phoneinfo) source code
 
getphoneinfo(self, phoneinfo) source code

Inherited from com_phone.Phone: alert, close, log, logdata, progress, raisecommsdnaexception, raisecommsexception, readobject, setmode, writeobject

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Inherited from com_brew.RealBrewProtocol: basename, dirname, exists, explore0c, get_brew_esn, getfilecontents, getfilesystem, getfirmwareinformation, hassubdirs, isdir, isfile, join, listfiles, listsubdirs, mkdir, mkdirs, modemmoderequest, offlinerequest, rmdir, rmdirs, rmfile, sendbrewcommand, setfileattr, statfile, writefile

Inherited from com_brew.RealBrewProtocol (private): _setmodebrew

Class Variables [hide private]
  desc = 'Samsung SPH-Axx phone'
  MODEPHONEBOOK = 'modephonebook'
  __read_timeout = 0.1
  __cal_end_datetime_value = None
  __cal_alarm_values = {0: 10, 1: 30, 2: 60, 3: -1, 4: 0}
  __cal_max_name_len = 32
  _cal_max_events_per_day = 9
  builtinringtones = ()
  builtinimages = ()
  getcallhistory = None

Inherited from com_phone.Phone: MODEMODEM, MODENONE, getplaylist, getsms, gett9db

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_brew.RealBrewProtocol (private): _brewepochtounix

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logtarget, commport)
(Constructor)

source code 

Call all the contructors and sets initial modes

Overrides: com_brew.RealBrewProtocol.__init__

_setmodemodem(self)

source code 
Overrides: com_phone.Phone._setmodemodem

savegroups(self, data)

source code 

Write the groups, sending only those groups that have had a name change. (So that ringers don't get messed up)

gettodo(self, result)

source code 
Overrides: gettodo

getmemo(self, result)

source code 
Overrides: getmemo