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

Type Phone

object --+        
         |        
     Phone --+    
             |    
         Phone --+
                 |
                Phone

Known Subclasses:
Phone

Talk to the LG G4015 Phone
Method Summary
  __init__(self, logtarget, commport)
  charset_ascii(self)
Set the phone charset to some form of ascii
  charset_base64(self)
Set the phone charset to Base64 (for binary transmission)
  detectphone(_, coms, likely_ports, res, _module, _log)
(Class method)
  get_detect_data(self, r)
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interoperating with the phone and UI.
  getphonebook(self, result)
Reads the phonebook data.
  getringtones(self, result)
  getwallpapers(self, result)
  is_mode_modem(self)
  savecalendar(self, dict, merge)
  savememo(self, result, merge)
  savephonebook(self, data)
Saves out the phonebook
  saveringtones(self, result, merge)
  savewallpapers(self, result, merge)
    Inherited from Phone
  get_esn(self)
  get_firmware_version(self)
  get_manufacturer_id(self)
  get_model_id(self)
  get_sim_id(self)
  sendATcommand(self, request, responseclass, ignoreerror)
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
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  getcallhistory(self, result)
  getmemo(self, result)
  getsms(self, result)
  log(self, str)
Log a message
  logdata(self, str, data, klass)
Log some data with option data object/class for the analyser
  progress(self, pos, max, desc)
Update the progress meter
  raisecommsdnaexception(self, str)
Raise a comms DeviceNeedsAttention Exception
  raisecommsexception(self, str, klass)
  readobject(self, filename, object_class, logtitle, uselocalfs)
Read the specified filename and bind it to the object class
  setmode(self, desiredmode)
Ensure the phone is in the right mode
  writeobject(self, filename, obj, logtitle, uselocalfs)
Writhe the object into the file
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
dict cal_repeat_value = {1: 'daily', 2: 'weekly', 3: 'monthly...
dict cal_repeat_value_r = {'monthly': 3, 'yearly': 4, 'daily'...
str desc = 'LG-G4015'
str helpid = 'phone-lgg4015.htm'
str serialsname = 'lgg4015'
    Inherited from Phone
NotImplementedType getcallhistory = NotImplemented
NotImplementedType getmemo = NotImplemented
NotImplementedType getplaylist = NotImplemented
NotImplementedType getsms = NotImplemented
NotImplementedType gett9db = NotImplemented
NotImplementedType gettodo = NotImplemented
str MODEMODEM = 'modemodem'
str MODENONE = 'modenone'

Instance Method Details

charset_ascii(self)

Set the phone charset to some form of ascii

charset_base64(self)

Set the phone charset to Base64 (for binary transmission)

getfundamentals(self, results)

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)

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

savephonebook(self, data)

Saves out the phonebook

Class Variable Details

cal_repeat_value

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

cal_repeat_value_r

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

desc

Type:
str
Value:
'LG-G4015'                                                             

helpid

Type:
str
Value:
'phone-lgg4015.htm'                                                    

serialsname

Type:
str
Value:
'lgg4015'                                                              

Generated by Epydoc 2.1 on Fri Aug 15 18:58:30 2008 http://epydoc.sf.net