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

Class LGUncountedIndexedMedia

Known Subclasses:
Phone, Phone

Implements media for LG phones that use the new index format with index file with no counters such as the VX8300 Allow external media to be managed without downloading files, can detect if external media is present. Also contains 'hack' for ringtones to allow users to store ringtones on the external media
Method Summary
  __init__(self)
  external_storage_present(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)
  is_external_media(self, filename)
  savemedia(self, mediakey, mediaindexkey, maps, results, merge, reindexfunction, update_index_file)
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, update_index_file=True)

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:37 2008 http://epydoc.sf.net