Package phones :: Module com_samsung :: 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
 
_setmodebrew(self) source code
 
_setmodebrewtomodem(self) source code
 
_setmodemodemtophonebook(self) source code
 
_setmodemodem(self) source code
 
_setmodephonebook(self) source code
 
_setmodephonebooktomodem(self) source code
 
_get_at_response(self) source code
 
is_online(self) source code
 
get_esn(self) source code
 
_send_and_get(self, at_command) source code
 
get_model(self) source code
 
get_manufacturer(self) source code
 
get_phone_number(self) source code
 
get_firmware_version(self) source code
 
get_battery_level(self) source code
 
get_signal_quality(self) source code
 
get_analog_digital(self) source code
 
get_groups(self, groups_range) source code
 
get_phone_entry(self, entry_index, alias_column=-1, num_columns=-1) source code
 
del_phone_entry(self, entry_index) source code
 
save_phone_entry(self, entry_str) source code
 
get_time_stamp(self) source code
 
phonize(self, str)
Convert the phone number into something the phone understands All digits, P, T, * and # are kept, everything else is removed
source code
 
get_calendar_entry(self, entry_index) source code
 
save_calendar_entry(self, entry_str) source code
 
get_memo_entry(self, entry_index) source code
 
save_memo_entry(self, entry_str) source code
 
get_todo_entry(self, entry_index) source code
 
save_todo_entry(self, entry_str) source code
 
get_sms_inbox(self, entry_index) source code
 
get_sms_saved(self, entry_index) source code
 
get_sms_sent(self, entry_index) source code
 
get_canned_msg(self, entry_index) source code
 
save_canned_msg(self, entry_str) source code
 
extract_timedate(self, td) source code
 
encode_timedate(self, td) source code
 
splitandunescape(self, line)
Split fields and unescape double quote and right brace
source code
 
samsungescape(self, s)
Escape double quotes and }'s in a string
source code
 
defrell(self, s, acol, ncol)
Fixes up phonebook responses with the alias field.
source code
 
csvsplit(self, line)
Parse a Samsung comma separated list.
source code
 
getcalendar(self, result) source code
 
process_calendar(self, dict)
Optimize and expand calendar data suitable for phone download
source code
 
savecalendar(self, dict, merge) source code
 
_getmemo(self, result) source code
 
_savememo(self, result, merge) source code
 
_gettodo(self, result) source code
 
_savetodo(self, result, merge) source code
 
_getsms(self, result) source code
 
_savesms(self, result, merge) source code
 
_getphoneinfo(self, phone_info) source code
 
_send_at_and_get(self, cmd) source code
 
is_mode_modem(self) source code
 
get_detect_data(self, r) 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

Class Methods [hide private]
 
detectphone(_, coms, likely_ports, res, _module, _log) source code
Class Variables [hide private]
  desc = 'Samsung SCH-Axx phone'
  MODEPHONEBOOK = 'modephonebook'
  _AT_str = 'AT'
  _OK_str = '\r\nOK\r\n'
  _Error_str = '\r\nERROR\r\n'
  _read_timeout = 0.1
  _cal_entries_range = xrange(20)
  _cal_max_events = 20
  _cal_max_events_per_day = 9
  _cal_num_of_read_fields = 7
  _cal_num_of_write_fields = 6
  _cal_entry = 0
  _cal_start_datetime = 1
  _cal_end_datetime = 2
  _cal_end_datetime_value = '19800106T000000'
  _cal_datetime_stamp = 3
  _cal_alarm_type = 4
  _cal_read_name = 6
  _cal_write_name = 5
  _cal_alarm_values = {'0': -1, '1': 0, '2': 10, '3': 30, '4': 60}
  _cal_max_name_len = 32
  _switch_mode_cmd = 'DX\xf4~'

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

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__

_setmodebrew(self)

source code 
Overrides: com_brew.RealBrewProtocol._setmodebrew

_setmodemodem(self)

source code 
Overrides: com_phone.Phone._setmodemodem

defrell(self, s, acol, ncol)

source code 

Fixes up phonebook responses with the alias field. The alias field does not have quotes around it, but can still contain commas