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

Type Phone

     LGPhonebook --+
                   |
      object --+   |
               |   |
           Phone --+
                   |
RealBrewProtocol --+
                   |
                  Phone


Talk to the LG TM520/VX10 cell phone
Method Summary
  __init__(self, logtarget, commport)
tuple decodedate(self, val)
Unpack 32 bit value into date/time
  encodedate(self, val, dst)
  extractphonebookentry(self, entry, fundamentals)
Return a phonebook entry in BitPim format
  getcalendar(self, result)
  getfundamentals(self, results)
Gets information fundamental to interopating with the phone and UI.
  getphonebook(self, result)
Reads the phonebook data.
  getringtones(self, result)
  makeentry(self, counter, entry, dict)
  pbend(self)
  pbinit(self)
  postgetdb(self, result)
  pregetpb(self, result)
  savecalendar(self, dict, merge)
  savegroups(self, data)
  savephonebook(self, data)
  saveringtones(self, results, merge)
    Inherited from Phone
  alert(self, message, wait)
Raises an alert in the main thread
  close(self)
  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)
    Inherited from RealBrewProtocol
  basename(self, path)
  dirname(self, filename)
  exists(self, path)
  explore0c(self)
  get_brew_esn(self)
  getfilecontents(self, file, use_cache)
  getfilesystem(self, dir, recurse)
  getfirmwareinformation(self)
  hassubdirs(self, dir)
  isdir(self, path)
  isfile(self, filename)
  join(self, *args)
  listfiles(self, dir)
  listsubdirs(self, dir, recurse)
  mkdir(self, name)
  mkdirs(self, directory)
  modemmoderequest(self)
  offlinerequest(self, reset, delay)
  rmdir(self, name)
  rmdirs(self, path)
  rmfile(self, name)
  sendbrewcommand(self, request, responseclass, callsetmode)
  setfileattr(self, filename, date)
  statfile(self, name)
  writefile(self, name, contents)
    Inherited from LGPhonebook
  sendpbcommand(self, request, responseclass, callsetmode)

Class Variable Summary
tuple builtinringtones = ('Standard1', 'Standard2', 'Standard3...
str desc = 'LG-TM520/VX10'
NoneType getwallpapers = None                                                                  
tuple ringtonelocations = ((0, '', 'ringer', 'ringers', 5),)
str serialsname = 'lgtm520'
    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'
    Inherited from RealBrewProtocol
str brewterminator = '~'
str MODEBREW = 'modebrew'
    Inherited from LGPhonebook
str MODEPHONEBOOK = 'modephonebook'
str pbterminator = '~'

Method Details

decodedate(self, val)

Unpack 32 bit value into date/time
Returns:
(year, month, day, hour, minute)
           (type=tuple)

extractphonebookentry(self, entry, fundamentals)

Return a phonebook entry in BitPim format

getfundamentals(self, results)

Gets information fundamental to interopating with the phone and UI.

getphonebook(self, result)

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

Class Variable Details

builtinringtones

Type:
tuple
Value:
('Standard1',
 'Standard2',
 'Standard3',
 'Standard4',
 'Standard5',
 'Radetzky March',
 'Nocturn',
 'Carmen',
...                                                                    

desc

Type:
str
Value:
'LG-TM520/VX10'                                                        

getwallpapers

Type:
NoneType
Value:
None                                                                  

ringtonelocations

Type:
tuple
Value:
((0, '', 'ringer', 'ringers', 5),)                                     

serialsname

Type:
str
Value:
'lgtm520'                                                              

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