public abstract class AbstractOldTvDataServiceBridge extends Object implements TvDataService
If you have used the AbstractTvDataService class you can extend from this class and your TvDataService will work again.
Constructor and Description |
---|
AbstractOldTvDataServiceBridge()
Deprecated.
Creates a new instance of AbstractTvDataService.
|
Modifier and Type | Method and Description |
---|---|
Channel[] |
checkForAvailableChannels()
Deprecated.
|
void |
connect()
Deprecated.
Called by the host-application before starting to download.
|
void |
disconnect()
Deprecated.
After the download is done, this method is called.
|
MutableChannelDayProgram |
downloadDayProgram(Date date,
Channel channel)
Deprecated.
Returns the whole program of the channel on the specified date.
|
protected abstract void |
downloadFileFor(Date date,
Channel channel,
File targetFile)
Deprecated.
Downloads the file containing the data for the specified dat and channel.
|
Version |
getAPIVersion()
Deprecated.
Gets the Version of the implemented API
Since TV-Browser 0.9.7 getAPIVersion must return 1.0
|
Channel[] |
getAvailableChannels()
Deprecated.
Gets the list of the channels that are available by this data service.
|
protected abstract String |
getDataDirectory()
Deprecated.
Gets the name of the directory where to download the data service specific
files.
|
protected abstract Channel[] |
getDefaultAvailableChannels()
Deprecated.
Gets the default list of the channels that are available by this data
service.
|
protected abstract String |
getFileNameFor(Date date,
Channel channel)
Deprecated.
Gets the name of the file that contains the data of the specified date.
|
protected Properties |
getSettings()
Deprecated.
Gets the settings.
|
SettingsPanel |
getSettingsPanel()
Deprecated.
|
boolean |
hasSettingsPanel()
Deprecated.
|
void |
loadSettings(Properties settings)
Deprecated.
Called by the host-application during start-up.
|
protected abstract void |
parseFile(File file,
Date date,
Channel channel,
ProgramDispatcher programDispatcher)
Deprecated.
Parses the specified file.
|
Properties |
storeSettings()
Deprecated.
Called by the host-application during shut-down.
|
boolean |
supportsDynamicChannelList()
Deprecated.
|
void |
updateTvData(TvDataUpdateManager dataBase,
Channel[] channelArr,
Date startDate,
int dateCount,
ProgressMonitor monitor)
Deprecated.
Updates the TV listings provided by this data service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkForAvailableChannels, getInfo, setWorkingDirectory, supportsAutoUpdate
public AbstractOldTvDataServiceBridge()
public Version getAPIVersion()
TvDataService
getAPIVersion
in interface TvDataService
public void updateTvData(TvDataUpdateManager dataBase, Channel[] channelArr, Date startDate, int dateCount, ProgressMonitor monitor) throws TvBrowserException
updateTvData
in interface TvDataService
TvBrowserException
protected abstract Channel[] getDefaultAvailableChannels()
public Channel[] checkForAvailableChannels() throws TvBrowserException
TvBrowserException
public boolean supportsDynamicChannelList()
supportsDynamicChannelList
in interface TvDataService
protected abstract String getDataDirectory()
protected abstract String getFileNameFor(Date date, Channel channel)
protected abstract void downloadFileFor(Date date, Channel channel, File targetFile) throws TvBrowserException
date
- The date to load the data for.channel
- The channel to load the data for.targetFile
- The file where to store the file.TvBrowserException
protected abstract void parseFile(File file, Date date, Channel channel, ProgramDispatcher programDispatcher) throws TvBrowserException
file
- The file to parse.date
- The date to load the data forchannel
- The channel to load the data forprogramDispatcher
- The ProgramDispatcher where to store the found
programs.TvBrowserException
protected Properties getSettings()
public void connect() throws TvBrowserException
TvBrowserException
public void disconnect() throws TvBrowserException
TvBrowserException
public MutableChannelDayProgram downloadDayProgram(Date date, Channel channel) throws TvBrowserException
TvBrowserException
public SettingsPanel getSettingsPanel()
getSettingsPanel
in interface TvDataService
public boolean hasSettingsPanel()
hasSettingsPanel
in interface TvDataService
public void loadSettings(Properties settings)
loadSettings
in interface TvDataService
public Properties storeSettings()
storeSettings
in interface TvDataService
public Channel[] getAvailableChannels()
getAvailableChannels
in interface TvDataService
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)