Package phones :: Module com_lg :: Class LGNewIndexedMedia
[hide private]
[frames] | no frames]

Class LGNewIndexedMedia

source code

Known Subclasses:

Implements media for LG phones that use the new index format such as the VX7000/8000

Instance Methods [hide private]
 
__init__(self) source code
 
getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
source code
 
getindex(self, filename)
read an index file
source code
 
getmedia(self, maps, results, key) source code
 
savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
source code
 
_guessvtype(self, filename, typemajor) source code
 
getwallpaperindices(self, results) source code
 
getringtoneindices(self, results) source code
 
getwallpapers(self, result) source code
 
getringtones(self, result) source code
 
savewallpapers(self, results, merge) source code
 
saveringtones(self, results, merge) source code
Class Variables [hide private]
  _minor_typemap = {0: {'.bmp': 1, '.jpg': 3}, 1: {'.mid': 4, '....
Method Details [hide private]

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

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

Class Variable Details [hide private]

_minor_typemap

Value:
{0: {'.bmp': 1, '.jpg': 3}, 1: {'.mid': 4, '.qcp': 5}, 2: {'.3g2': 3}}