|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ambient.library.Library
public final class Library
The music library. Emits ILibraryListener messages on events.
| Field Summary | |
|---|---|
(package private) DBStrategy |
backend
The database back-end. |
Set<String> |
watchedDirectories
List of watched directories. |
| Constructor Summary | |
|---|---|
Library(Context ctx)
Creates new library. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this instance of the library. |
protected void |
finalize()
|
DBStrategy |
getBackend()
Returns database backend object. |
int |
getGenreCount()
Returns overall genre count. |
Statistics |
getStatistics(TrackOriginEnum origin)
Returns statistics for storage for given origin. |
File[] |
getWatchedDirectories()
Returns the watchedDirectories set as a list of files. |
void |
queueScanner(TrackOriginEnum storage)
Rescans desired storage for music files and adds them to the library. |
void |
setWatchedDirectories(String directoryList)
Parses given directory list and sets watchedDirectories
accordingly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final DBStrategy backend
public Set<String> watchedDirectories
| Constructor Detail |
|---|
public Library(Context ctx)
throws FileNotFoundException
ctx - the context.
FileNotFoundException - if database fails to initialize| Method Detail |
|---|
public void setWatchedDirectories(String directoryList)
watchedDirectories
accordingly. Does not rescan the collection.
directoryList - the list of directories, separated with ':'public File[] getWatchedDirectories()
watchedDirectories set as a list of files.
public void queueScanner(TrackOriginEnum storage)
storage - the storage type.public DBStrategy getBackend()
public void close()
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic Statistics getStatistics(TrackOriginEnum origin)
origin - the track origin
public int getGenreCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||