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

Class Phone

source code

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

Talk to the LG 6190 cell phone

Nested Classes [hide private]

Inherited from com_brew.RealBrewProtocol: DirCache

Instance Methods [hide private]
 
__init__(self, logtarget, commport)
Calls all the constructors and sets initial modes
source code
 
getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
source code
 
getcamindex(self, indexfile, location, getmedia=False)
Read an index file
source code
 
getindex(self, indexfile, location, getmedia=False)
Read an index file
source code
 
_createnamewithmimetype(self, name, mt) source code
 
_getmimetype(self, name) source code
 
getmedia(self, maps, result, key)
Returns the contents of media as a dict where the key is a name as returned by getindex, and the value is the contents of the media
source code
 
savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
source code
 
_getinboxmessage(self, sf) source code
 
_getoutboxmessage(self, sf) source code
 
eval_detect_data(self, res) source code
 
getphoneinfo(self, phone_info) source code

Inherited from com_lgvx4400.Phone: extractphonebookentry, get_cal, get_detect_data, get_esn, getcalendar, getcallhistory, getfundamentals, getgroups, getmemo, getphonebook, getringtoneindices, getsms, getwallpaperindices, is_mode_brew, makeentry, savecalendar, savegroups, savememo, savephonebook, savesms, set_cal

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

Inherited from com_lg.LGIndexedMedia: getringtones, getwallpapers, saveringtones, savewallpapers

Class Methods [hide private]

Inherited from com_lgvx4400.Phone: detectphone

Class Variables [hide private]
  desc = 'LG 6190'
  helpid = None
  protocolclass
Various descriptions of data specific to LG 6190 (Sprint)
  serialsname = 'lg6190'
  wallpaperindexfilename = 'download/dloadindex/brewImageIndex.map'
  ringerindexfilename = 'download/dloadindex/brewRingerIndex.map'
  imagelocations = ((10, 'download/dloadindex/brewImageIndex.map...
  ringtonelocations = ((50, 'download/dloadindex/brewRingerIndex...
  builtinimages = ()
  builtinringtones = ('Ring 1', 'Ring 2', 'Ring 3', 'Ring 4', 'R...
  __mimetoextensionmapping = {'audio/midi': '.mid', 'audio/mpeg'...
  brew_version_file = 'OWS/paramtable1.fil'
  brew_version_txt_key = 'LG6190_version_data'
  my_model = 'lg6190'

Inherited from com_lgvx4400.Phone: esn_file, esn_file_key, lgpbinfo_key

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

Inherited from com_brew.RealBrewProtocol: MODEBREW, brewterminator

Inherited from com_brew.RealBrewProtocol (private): _brewepochtounix

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 

Calls all the constructors and sets initial modes

Overrides: com_lg.LGIndexedMedia.__init__

getmediaindex(self, builtins, maps, results, key)

source code 

Gets the media (wallpaper/ringtone) index

Parameters:
  • builtins - the builtin list on the phone
  • results - places results in this dict
  • maps - the list of index files and locations
  • key - key to place results in
Overrides: com_lg.LGIndexedMedia.getmediaindex

getindex(self, indexfile, location, getmedia=False)

source code 

Read an index file

Overrides: com_lg.LGIndexedMedia.getindex

getmedia(self, maps, result, key)

source code 

Returns the contents of media as a dict where the key is a name as returned by getindex, and the value is the contents of the media

Overrides: com_lg.LGIndexedMedia.getmedia

savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)

source code 

Actually saves out the media

Parameters:
  • mediakey - key of the media (eg 'wallpapers' or 'ringtones')
  • mediaindexkey - index key (eg 'wallpaper-index')
  • maps - list index files and locations
  • results - results dict
  • merge - are we merging or overwriting what is there?
  • reindexfunction - the media is re-indexed at the end. this function is called to do it
Overrides: com_lg.LGIndexedMedia.savemedia

_getinboxmessage(self, sf)

source code 
Overrides: com_lgvx4400.Phone._getinboxmessage

_getoutboxmessage(self, sf)

source code 
Overrides: com_lgvx4400.Phone._getoutboxmessage

eval_detect_data(self, res)

source code 
Overrides: com_lgvx4400.Phone.eval_detect_data

Class Variable Details [hide private]

protocolclass

Various descriptions of data specific to LG 6190 (Sprint)

Value:
phones.p_lglg6190

imagelocations

Value:
((10,
  'download/dloadindex/brewImageIndex.map',
  'usr/Wallpaper',
  'images',
  30),
 (50, 'cam/pics.dat', 'cam', 'camera', 60))

ringtonelocations

Value:
((50,
  'download/dloadindex/brewRingerIndex.map',
  'usr/Ringtone',
  'ringers',
  30))

builtinringtones

Value:
('Ring 1',
 'Ring 2',
 'Ring 3',
 'Ring 4',
 'Ring 5',
 'Default tone',
 'Fearwell',
 'Arabesque',
...

__mimetoextensionmapping

Value:
{'audio/midi': '.mid',
 'audio/mpeg': '.mp3',
 'audio/qcp': '.qcp',
 'image/bci': '.bci',
 'image/bmp': '.bmp',
 'image/gif': '.gif',
 'image/jpg': '.jpg',
 'image/png': '.png'}