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

Class LGNewIndexedMedia

Known Subclasses:
LGNewIndexedMedia2, Phone

Implements media for LG phones that use the new index format such as the VX7000/8000
Method Summary
  __init__(self)
  getindex(self, filename)
read an index file
  getmedia(self, maps, results, key)
  getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
  getringtoneindices(self, results)
  getringtones(self, result)
  getwallpaperindices(self, results)
  getwallpapers(self, result)
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
  saveringtones(self, results, merge)
  savewallpapers(self, results, merge)

Method Details

getindex(self, filename)

read an index file

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

Gets the media (wallpaper/ringtone) index
Parameters:
builtins - the builtin list on the phone
maps - the list of index files and locations
results - places results in this dict
key - key to place results in

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

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

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