Module tvbrowser

Class TvDataBase


  • public class TvDataBase
    extends java.lang.Object
    Author:
    Til Schneider, www.murfman.de
    • Field Detail

    • Method Detail

      • getInstance

        public static TvDataBase getInstance()
      • updateTvDataBase

        protected void updateTvDataBase()
        Updates the TV data base.
        Since:
        2.2.2/2.5.1
      • checkTvDataInventory

        public void checkTvDataInventory​(int lifespan)
      • handleTvBrowserStartFinished

        public void handleTvBrowserStartFinished()
        Handles the pending plugin information if it is to do after TV-Browser start is finished.

        Since:
        2.7.2
      • close

        public void close​(boolean log)
      • removeTvDataListener

        public void removeTvDataListener​(TvDataBaseListener listener)
      • setDayProgramWasChangedByPlugin

        public void setDayProgramWasChangedByPlugin​(Date date,
                                                    Channel channel)
      • reCalculateTvData

        public void reCalculateTvData​(Channel channel,
                                      Date date)
      • getDayProgramKey

        protected static java.lang.String getDayProgramKey​(Date date,
                                                           Channel channel)
      • isDayProgramAvailable

        public boolean isDayProgramAvailable​(Date date,
                                             Channel channel)
      • deleteExpiredFiles

        public void deleteExpiredFiles​(int lifespan,
                                       boolean informPlugins)
        Deletes expired tvdata files older then lifespan days.
        Parameters:
        lifespan - The number of days to delete from the past
        informPlugins - If the plugins should be informed about the deleting.
      • dataAvailable

        public boolean dataAvailable​(Date date)
        Returns true, if TV data is available on disk for the given date.
        Parameters:
        date - The date to check.
        Returns:
        if the data is available.
      • unsubscribeChannels

        public void unsubscribeChannels​(Channel[] channels)
      • getMaxSupportedDate

        public Date getMaxSupportedDate()
        the maximum date any part of TV-Browser needs to be able to handle
        Returns:
        today plus 4 weeks
      • sendNewProgramsToTvDataListener

        void sendNewProgramsToTvDataListener()