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

Class Phone

source code

     object --+        
              |        
com_phone.Phone --+    
                  |    
     com_etsi.Phone --+
                      |
                     Phone
Known Subclasses:

Talk to the LG G4015 Phone

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getfundamentals(self, results)
Gets information fundamental to interoperating with the phone and UI.
source code
 
_get_groups(self) source code
 
_ringtone_mode(self) source code
 
_get_ringtone_index(self)
Return the ringtone index
source code
 
_wallpaper_mode(self) source code
 
_get_wallpaper_index(self)
Return the wallpaper index
source code
 
_build_bpcalendar_entry(self, phone_entry) source code
 
getcalendar(self, result) source code
 
_build_phone_cal_entry(self, entry_count, bpentry) source code
 
savecalendar(self, dict, merge) source code
 
charset_ascii(self)
Set the phone charset to some form of ascii
source code
 
charset_base64(self)
Set the phone charset to Base64 (for binary transmission)
source code
 
is_mode_modem(self) source code
 
get_detect_data(self, r) source code
 
_build_bp_entry(self, entry, groups, in_sim=False) source code
 
_get_main_phonebook(self, groups)
return a dict of contacts read off the phone storage area
source code
 
_get_sim_phonebook(self, groups)
return a dict of contacts read off the phone SIM card
source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
_in_sim(self, entry)
Return True if this entry has the sim flag set, indicating that it should be stored on the SIM card.
source code
 
_lookup_group(self, entry, groups) source code
 
_build_main_entry(self, entry, groups) source code
 
_build_sim_entry(self, entry, groups) source code
 
_save_main_phonebook(self, entries, groups)
got the the phonebook dict and write them out to the phone
source code
 
_save_sim_phonebook(self, entries, groups)
got the the phonebook dict and write them out to the phone
source code
 
savephonebook(self, data)
Saves out the phonebook
source code
 
_del_media_files(self, names) source code
 
_add_media_file(self, file_name, media_name, media_code, data)
Add one media ringtone
source code
 
_add_ringtones(self, names, name_dict, media) source code
 
saveringtones(self, result, merge) source code
 
getringtones(self, result) source code
 
getwallpapers(self, result) source code
 
_add_wallpapers(self, names, name_dict, media) source code
 
savewallpapers(self, result, merge) source code
 
getmemo(self, result) source code
 
savememo(self, result, merge) source code
 
_process_sms(self, _resp, res) source code
 
getsms(self, result) source code
 
_get_history_calls(self, log_str, call_type, min_idx, max_idx) source code
 
getcallhistory(self, result) source code

Inherited from com_etsi.Phone: get_esn, get_firmware_version, get_manufacturer_id, get_model_id, get_sim_id, sendATcommand

Inherited from com_etsi.Phone (private): _setmodemodem

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__

Class Methods [hide private]
 
detectphone(_, coms, likely_ports, res, _module, _log) source code
Class Variables [hide private]
  desc = 'LG-G4015'
  helpid = 'phone-lgg4015.htm'
  protocolclass
Various descriptions of data specific to LG G4015
  serialsname = 'lgg4015'
  cal_repeat_value = {1: 'daily', 2: 'weekly', 3: 'monthly', 4: ...
  cal_repeat_value_r = {'daily': 1, 'monthly': 3, 'weekly': 2, '...

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, logtarget, commport)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getfundamentals(self, results)

source code 

Gets information fundamental to interoperating with the phone and UI.

Currently this is:

  • 'uniqueserial' a unique serial number representing the phone
  • 'groups' the phonebook groups
  • 'wallpaper-index' map index numbers to names
  • 'ringtone-index' map index numbers to ringtone names

This method is called before we read the phonebook data or before we write phonebook data.

getphonebook(self, result)

source code 

Reads the phonebook data. The getfundamentals information will already be in result.

getmemo(self, result)

source code 
Overrides: getmemo

getsms(self, result)

source code 
Overrides: getsms

getcallhistory(self, result)

source code 
Overrides: getcallhistory

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG G4015

Value:
phones.p_lgg4015

cal_repeat_value

Value:
{1: 'daily', 2: 'weekly', 3: 'monthly', 4: 'yearly'}

cal_repeat_value_r

Value:
{'daily': 1, 'monthly': 3, 'weekly': 2, 'yearly': 4}