TV-Browser 2.7.5 API

swedbtvdataservice
Class SweDBTvDataService

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

public class SweDBTvDataService
extends AbstractTvDataService


Field Summary
static String DEFAULT_PLUGINS_DOWNLOAD_URL
          The default plugins download URL
static Localizer mLocalizer
           
(package private) static String SHOW_REGISTER_TEXT
           
 
Constructor Summary
SweDBTvDataService()
          Creates a new instance of SweDBTvDataService
 
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()
           
 SoftReferenceCache<String,File> getIconCache()
           
 PluginInfo getInfo()
          Gets information about this TvDataService
 Properties getProperties()
           
 SettingsPanel getSettingsPanel()
           
static Version getVersion()
           
 boolean hasRightToDownloadIcons()
           
 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
 

Field Detail

DEFAULT_PLUGINS_DOWNLOAD_URL

public static final String DEFAULT_PLUGINS_DOWNLOAD_URL
The default plugins download URL

See Also:
Constant Field Values

mLocalizer

public static final Localizer mLocalizer

SHOW_REGISTER_TEXT

static final String SHOW_REGISTER_TEXT
See Also:
Constant Field Values
Constructor Detail

SweDBTvDataService

public SweDBTvDataService()
Creates a new instance of SweDBTvDataService

Method Detail

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

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

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
Updates the TV listings provided by this data service.

Throws:
TvBrowserException

loadSettings

public void loadSettings(Properties settings)
Called by the host-application during start-up. Implement this method to load your data services settings from the file system.


storeSettings

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


getAvailableChannels

public Channel[] getAvailableChannels(ChannelGroup group)
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

hasRightToDownloadIcons

public boolean hasRightToDownloadIcons()

getIconCache

public SoftReferenceCache<String,File> getIconCache()

getProperties

public Properties getProperties()

checkForAvailableChannelGroups

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

getVersion

public static Version getVersion()

getInfo

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


TV-Browser 2.7.5 API

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