sk.baka.ambient.library
Interface ILibraryListener

All Known Implementing Classes:
AbstractCollectionController, AmpacheController, CollectionController, ContextController, CoverCache, MagnatuneController, PlayerController

public interface ILibraryListener

Listens for library events.

Author:
Martin Vysny

Method Summary
 void coverLoaded(TrackMetadataBean track)
          A cover for given track has been successfully downloaded.
 void libraryUpdate(boolean updateStarted, boolean interrupted, boolean userNotified)
          Informs that the file rescan is complete and the database is updated.
 void lyricsLoaded(TrackMetadataBean track, List<LyrdbTrack> lyrics)
          A lyrics event.
 

Method Detail

libraryUpdate

void libraryUpdate(boolean updateStarted,
                   boolean interrupted,
                   boolean userNotified)
Informs that the file rescan is complete and the database is updated. Invoked in Scanner thread.

Parameters:
updateStarted - if true then the library update just started. If false then the update finished.
interrupted - if true then the scan was interrupted.
userNotified - if true then the user is already notified about the library being updated.

coverLoaded

void coverLoaded(TrackMetadataBean track)
A cover for given track has been successfully downloaded. Note that if the cache size is set to a very small value the image may already be purged from the cache. To avoid this either set a sensible cache size value, e.g. 128kb, or turn off the image downloading by setting offline mode to true.

Parameters:
track - the track.

lyricsLoaded

void lyricsLoaded(TrackMetadataBean track,
                  List<LyrdbTrack> lyrics)
A lyrics event. Either lyrics for given track has been successfully downloaded or user needs to select one from given lyrics list.

Parameters:
track - the track.
lyrics - if non-null then user needs to select the correct karaoke from this list. The list may be empty - in this case no karaoke files are available. If null then the karaoke file is available locally. If non-null and is empty then no karaoke files are available.


Copyright © 2007-2008. All Rights Reserved.