TV-Browser 2.7.5 API

bbcbackstagedataservice
Class BbcBackstageDataService

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

public class BbcBackstageDataService
extends AbstractTvDataService

This Dataservice collects Data from http://backstage.bbc.co.uk/feeds/tvradio/

Author:
bodum

Constructor Summary
BbcBackstageDataService()
           
 
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()
           
 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

BbcBackstageDataService

public BbcBackstageDataService()
Method Detail

checkForAvailableChannelGroups

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

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

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.


getAvailableGroups

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

getVersion

public static Version getVersion()

getInfo

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


getSettingsPanel

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

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

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.


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


supportsDynamicChannelGroups

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

supportsDynamicChannelList

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

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

TV-Browser 2.7.5 API

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