public class TvDataBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DATA_LIFESPAN |
Modifier and Type | Method and Description |
---|---|
void |
addTvDataListener(TvDataBaseListener listener) |
void |
checkTvDataInventory(int lifespan) |
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.
|
public static final int DEFAULT_DATA_LIFESPAN
public static TvDataBase getInstance()
protected void updateTvDataBase()
public void checkTvDataInventory(int lifespan)
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)
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.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)