|
||||||||||
| 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. |
| Constructor Summary | |
|---|---|
Library(android.content.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. |
void |
queueScanner(TrackOriginEnum storage)
Rescans desired storage for music files and adds them to the library. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final DBStrategy backend
| Constructor Detail |
|---|
public Library(android.content.Context ctx)
throws java.io.FileNotFoundException
ctx - the context.
java.io.FileNotFoundException - if database fails to initialize| Method Detail |
|---|
public void queueScanner(TrackOriginEnum storage)
storage - the storage type.public DBStrategy getBackend()
public void close()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic Statistics getStatistics(TrackOriginEnum origin)
origin - the track origin. Currently only
TrackOriginEnum.Magnatune is supported.
public int getGenreCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||