|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.core.TvDataBase
public class TvDataBase
Method Summary | |
---|---|
void |
addTvDataListener(TvDataBaseListener listener)
|
void |
checkTvDataInventory()
|
void |
close(boolean log)
|
boolean |
dataAvailable(Date date)
Returns true, if TV data is available on disk for the given date. |
void |
deleteExpiredFiles(int lifespan,
boolean informPlugins)
Deletes expired tvdata files older then lifespan days. |
ChannelDayProgram |
getDayProgram(Date date,
Channel channel)
|
protected static java.lang.String |
getDayProgramKey(Date date,
Channel channel)
|
static TvDataBase |
getInstance()
|
Date |
getMaxSupportedDate()
the maximum date any part of TV-Browser needs to be able to handle |
void |
handleTvBrowserStartFinished()
Handles the pending plugin information if it is to do after TV-Browser start is finished. |
boolean |
isDayProgramAvailable(Date date,
Channel channel)
|
void |
reCalculateTvData(Channel channel,
Date date)
Checks all TV-Data for missing length. |
void |
removeTvDataListener(TvDataBaseListener listener)
|
(package private) void |
sendNewProgramsToTvDataListener()
|
void |
setDayProgram(MutableChannelDayProgram prog)
|
void |
setDayProgramWasChangedByPlugin(Date date,
Channel channel)
|
void |
unsubscribeChannels(Channel[] channels)
|
protected void |
updateTvDataBase()
Updates the TV data base. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TvDataBase getInstance()
protected void updateTvDataBase()
public void checkTvDataInventory()
public void handleTvBrowserStartFinished()
public void close(boolean log)
public void addTvDataListener(TvDataBaseListener listener)
public void removeTvDataListener(TvDataBaseListener listener)
public ChannelDayProgram getDayProgram(Date date, Channel channel)
public void setDayProgramWasChangedByPlugin(Date date, Channel channel)
public void reCalculateTvData(Channel channel, Date date)
days
- The number of days to recalculateprogressMonitor
- display status of the recalculationpublic void setDayProgram(MutableChannelDayProgram prog)
protected static java.lang.String getDayProgramKey(Date date, Channel channel)
public boolean isDayProgramAvailable(Date date, Channel channel)
public void deleteExpiredFiles(int lifespan, boolean informPlugins)
lifespan
- The number of days to delete from the pastinformPlugins
- If the plugins should be informed about the deleting.public boolean dataAvailable(Date date)
date
- The date to check.
public void unsubscribeChannels(Channel[] channels)
public Date getMaxSupportedDate()
void sendNewProgramsToTvDataListener()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |