|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to be implemented by all playlist sources.
Corresponds to playlist table in JReceiver database.
Field Summary | |
static java.lang.String |
HKEY_PL_TYPE
|
static java.lang.String |
HKEY_TUNE_COUNT
|
static int |
PLAYLIST_TYPE_ALL
Corresponds to the playlists tables of all types. |
static int |
PLAYLIST_TYPE_DYNAMIC
A 'dynamic' playlist source is the result of a database query. |
static int |
PLAYLIST_TYPE_FILE
A 'file' dynamic source is conventional playlist file whose contents have been cached in the database for quick retrieval and filtering |
static int |
PLAYLIST_TYPE_STATION
A 'station' playlist source refers to a streaming internet radio station. |
static int |
PLAYLIST_TYPE_TREE
A 'tree' playlist source is a user-specified hierarchy of files and folders. |
static java.lang.String |
POPULATE_FILTERABLE
populate filterable interface of a playlist bean, if available |
static java.lang.String |
POPULATE_FOLDERLIST
populate folderlist interface of a playlist bean, if available |
static java.lang.String |
POPULATE_SOURCELIST
populate sourcelist interface of a playlist bean, if available |
Fields inherited from interface jreceiver.common.rec.source.Source |
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED |
Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
Fields inherited from interface jreceiver.common.rec.Sortable |
HKEY_ORDER_BY |
Fields inherited from interface jreceiver.common.rec.Selectable |
HKEY_CHECKED |
Method Summary | |
boolean |
getIsDynamicPlaylist()
|
boolean |
getIsFilePlaylist()
|
boolean |
getIsStationPlaylist()
|
boolean |
getIsTreePlaylist()
|
int |
getPlaylistType()
obtain the playlist type (file, dynamic or tree) |
int |
getTuneCount()
Obtain the number of media files (not lines!) specified in a playlist file. |
void |
setPlaylistType(int pl_type)
assign the playlist type (file, dynamic or tree) |
void |
setTuneCount(int count)
Assign the number of media files (not lines!) specified in a playlist file. |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar. |
Methods inherited from interface jreceiver.common.rec.source.Source |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle |
Methods inherited from interface jreceiver.common.rec.Rec |
getKey, setKey |
Methods inherited from interface jreceiver.common.rec.Hashable |
toString |
Methods inherited from interface jreceiver.common.rec.Sortable |
getOrderBy, setOrderBy |
Methods inherited from interface jreceiver.common.rec.Selectable |
getChecked, setChecked |
Field Detail |
public static final java.lang.String HKEY_PL_TYPE
public static final java.lang.String HKEY_TUNE_COUNT
public static final java.lang.String POPULATE_SOURCELIST
public static final java.lang.String POPULATE_FOLDERLIST
public static final java.lang.String POPULATE_FILTERABLE
public static final int PLAYLIST_TYPE_ALL
public static final int PLAYLIST_TYPE_FILE
Corresponds to the fplaylists tables.
public static final int PLAYLIST_TYPE_DYNAMIC
Corresponds to the dplaylist table.
public static final int PLAYLIST_TYPE_TREE
Corresponds to the source_list and source_folder tables.
public static final int PLAYLIST_TYPE_STATION
Corresponds to the splaylist_url.
Method Detail |
public int getPlaylistType()
public void setPlaylistType(int pl_type)
public int getTuneCount()
public void setTuneCount(int count)
public java.util.Hashtable toHash()
Use a constructor appropriate to the playlist type to transform the data back into an object of this type.
toHash
in interface Hashable
jreceiver.common.rec.Hashable
public boolean getIsDynamicPlaylist()
public boolean getIsTreePlaylist()
public boolean getIsFilePlaylist()
public boolean getIsStationPlaylist()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |