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

Class LGNewIndexedMedia2

LGNewIndexedMedia --+
                    |
                   LGNewIndexedMedia2

Known Subclasses:
Phone

Implements media for LG phones that use the newer index format such as the VX8100/5200 Similar ot the other new media type hence the subclassing, but the type field in the PACKET has a different meaning so different code is required and it has support for an icon field that affects whcih icon is displayed next to the tone on the phone
Method Summary
  getmedia(self, maps, results, key)
  getmediaindex(self, builtins, maps, results, key)
Gets the media (wallpaper/ringtone) index
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction)
Actually saves out the media
    Inherited from LGNewIndexedMedia
  __init__(self)
  getindex(self, filename)
read an index file
  getringtoneindices(self, results)
  getringtones(self, result)
  getwallpaperindices(self, results)
  getwallpapers(self, result)
  saveringtones(self, results, merge)
  savewallpapers(self, results, merge)

Method Details

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
Overrides:
phones.com_lg.LGNewIndexedMedia.getmediaindex

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
Overrides:
phones.com_lg.LGNewIndexedMedia.savemedia

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