TV-Browser 2.7.5 API

schedulesdirectdataservice
Class SchedulesDirectDataService

java.lang.Object
  extended by devplugin.AbstractTvDataService
      extended by schedulesdirectdataservice.SchedulesDirectDataService
All Implemented Interfaces:
ContextMenuIf, ButtonActionIf, TvDataService

public class SchedulesDirectDataService
extends AbstractTvDataService


Constructor Summary
SchedulesDirectDataService()
           
 
Method Summary
 ChannelGroup[] checkForAvailableChannelGroups(ProgressMonitor monitor)
           
 Channel[] checkForAvailableChannels(ChannelGroup group, ProgressMonitor monitor)
          Some TvDataServices may need to connect to the internet to know their channels.
 Channel[] getAvailableChannels(ChannelGroup group)
          Gets the list of the channels that are available for the given channel group.
 ChannelGroup[] getAvailableGroups()
           
 ArrayList<Channel> getChannels()
           
 PluginInfo getInfo()
          Gets information about this TvDataService
 SettingsPanel getSettingsPanel()
           
static Version getVersion()
           
 boolean hasSettingsPanel()
          A TvDataService can have a settings panel within the settings dialog.
 void loadSettings(Properties settings)
          Called by the host-application during start-up.
 void setWorkingDirectory(File dataDir)
          This method is called by the host application to set the working folder.
 Properties storeSettings()
          Called by the host-application during shut-down.
 boolean supportsDynamicChannelGroups()
           
 boolean supportsDynamicChannelList()
           
 void updateTvData(TvDataUpdateManager updateManager, Channel[] channelArr, Date startDate, int dateCount, ProgressMonitor monitor)
          Updates the TV listings provided by this data service.
 
Methods inherited from class devplugin.AbstractTvDataService
checkForAvailableChannels, getAPIVersion, getAvailableChannels, getButtonAction, getButtonActionDescription, getContextMenuActions, getId, getParentFrame, getPluginManager, handleTvBrowserStartFinished, setParent, setPluginManager, supportsAutoUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulesDirectDataService

public SchedulesDirectDataService()
Method Detail

setWorkingDirectory

public void setWorkingDirectory(File dataDir)
Description copied from interface: TvDataService
This method is called by the host application to set the working folder. If required, TvDataService implementations should store their data within this 'dataDir' directory


getAvailableGroups

public ChannelGroup[] getAvailableGroups()
Returns:
an array of the available channel groups.

updateTvData

public void updateTvData(TvDataUpdateManager updateManager,
                         Channel[] channelArr,
                         Date startDate,
                         int dateCount,
                         ProgressMonitor monitor)
                  throws TvBrowserException
Description copied from interface: TvDataService
Updates the TV listings provided by this data service.

Throws:
TvBrowserException

loadSettings

public void loadSettings(Properties settings)
Description copied from interface: TvDataService
Called by the host-application during start-up. Implement this method to load your dataservices settings from the file system.


storeSettings

public Properties storeSettings()
Description copied from interface: TvDataService
Called by the host-application during shut-down. Implements this method to store your dataservices settings to the file system.


hasSettingsPanel

public boolean hasSettingsPanel()
Description copied from interface: TvDataService
A TvDataService can have a settings panel within the settings dialog. If the hasSettingsPanel() method returns false, the getSettingsPanel() method is never called.

Returns:
true, if the settings panel feature is used by this TvDataService

getSettingsPanel

public SettingsPanel getSettingsPanel()
Returns:
the SettingsPanel of this TvDataService

getAvailableChannels

public Channel[] getAvailableChannels(ChannelGroup group)
Description copied from interface: TvDataService
Gets the list of the channels that are available for the given channel group.


checkForAvailableChannels

public Channel[] checkForAvailableChannels(ChannelGroup group,
                                           ProgressMonitor monitor)
                                    throws TvBrowserException
Description copied from interface: TvDataService
Some TvDataServices may need to connect to the internet to know their channels. If supportsDanymicChannelList() returns true, this method is called to check for available channels.

Returns:
array of all available channels (new and old)
Throws:
TvBrowserException

checkForAvailableChannelGroups

public ChannelGroup[] checkForAvailableChannelGroups(ProgressMonitor monitor)
                                              throws TvBrowserException
Throws:
TvBrowserException

supportsDynamicChannelList

public boolean supportsDynamicChannelList()
Returns:
true, if this TvDataService can dynamically load other channels

supportsDynamicChannelGroups

public boolean supportsDynamicChannelGroups()
Returns:
true, if this TvDataService can dynamically load other groups

getVersion

public static Version getVersion()

getInfo

public PluginInfo getInfo()
Description copied from interface: TvDataService
Gets information about this TvDataService


getChannels

public ArrayList<Channel> getChannels()
Returns:
All channels available

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)