Module tvbrowser

Class TvDataUpdater


  • public class TvDataUpdater
    extends java.lang.Object
    Updates the TV data.
    Author:
    Til Schneider, www.murfman.de
    • Method Detail

      • removeTvDataUpdateListener

        public void removeTvDataUpdateListener​(TvDataUpdateListener listener)
      • isDownloading

        public boolean isDownloading()
        Gets whether the TV data updater is currently downloading data.
        Returns:
        true, if the TV data updater is currently downloading data.
      • downloadTvData

        public void downloadTvData​(int daysToDownload,
                                   TvDataServiceProxy[] services,
                                   javax.swing.JProgressBar progressBar,
                                   javax.swing.JLabel label)
        Download the new TV data
        Parameters:
        daysToDownload - The number of days until today to download the program for.
        services - The services to use for data update.
        progressBar - The progress bar to show the data update progress.
        label - The label to print status message to.
      • isUpdating

        public boolean isUpdating()
      • fireTvDataUpdateStarted

        void fireTvDataUpdateStarted​(Date until)
      • fireTvDataUpdateFinished

        void fireTvDataUpdateFinished()
      • stopDownload

        public void stopDownload()
        Stops the current download.
      • tvDataWasChanged

        public boolean tvDataWasChanged()
        check whether the last TV data update changed some data in the TV database
        Returns:
        true, if data was changed during last update
        Since:
        2.6