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

Class Phone

source code

               object --+    
                        |    
          com_phone.Phone --+
                            |
com_brew.RealBrewProtocol --+
                            |
       com_lg.LGPhonebook --+
                            |
                           Phone

Talk to the LG TM520/VX10 cell phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

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 interopating with the phone and UI.
source code
 
pbinit(self) source code
 
pbend(self) source code
 
pregetpb(self, result) source code
 
postgetdb(self, result) source code
 
getphonebook(self, result)
Reads the phonebook data.
source code
 
extractphonebookentry(self, entry, fundamentals)
Return a phonebook entry in BitPim format
source code
 
savegroups(self, data) source code
 
savephonebook(self, data) source code
 
_findserial(self, serial, dict)
Searches dict to find entry with matching serial.
source code
 
getcalendar(self, result) source code
 
savecalendar(self, dict, merge) source code
 
getringtones(self, result) source code
 
saveringtones(self, results, merge) source code
tuple
decodedate(self, val)
Unpack 32 bit value into date/time
source code
 
encodedate(self, val, dst) source code
 
_findringtoneindex(self, index, name, pbentryname) source code
 
_calcnumsum(self, entry, number) source code
 
makeentry(self, counter, entry, dict) source code

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

Inherited from com_phone.Phone (private): _setmodemodem

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

Inherited from com_lg.LGPhonebook: sendpbcommand

Class Variables [hide private]
  desc = 'LG-TM520/VX10'
  protocolclass
Various descriptions of data specific to LG TM520
  serialsname = 'lgtm520'
  ringtonelocations = ((0, '', 'ringer', 'ringers', 5))
  builtinringtones = ('Standard1', 'Standard2', 'Standard3', 'St...
  _tm520epochtounix = 315993600
  _brewepochtounix = 315993600
  _calrepeatvalues = {0: None, 1: None, 2: 'daily'}
  getwallpapers = None

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

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_lg.LGPhonebook: MODEPHONEBOOK, pbterminator

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: com_lg.LGPhonebook.__init__

getphonebook(self, result)

source code 

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

_findserial(self, serial, dict)

source code 

Searches dict to find entry with matching serial. If not found, returns None

decodedate(self, val)

source code 

Unpack 32 bit value into date/time

Returns: tuple
(year, month, day, hour, minute)

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG TM520

Value:
phones.p_lgtm520

builtinringtones

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