- java.lang.Object
-
- tvbrowser.core.tvdataservice.AbstractTvDataServiceProxy
-
- All Implemented Interfaces:
ContextMenuIf
,InfoIf
,ButtonActionIf
,TvDataServiceProxy
- Direct Known Subclasses:
DefaultTvDataServiceProxy
public abstract class AbstractTvDataServiceProxy extends java.lang.Object implements TvDataServiceProxy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tvbrowser.core.tvdataservice.TvDataServiceProxy
TvDataServiceProxy.Comparator
-
-
Field Summary
-
Fields inherited from interface devplugin.ContextMenuIf
ACTIONKEY_KEYBOARD_EVENT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTvDataServiceProxy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Channel[]
checkForAvailableChannels(ChannelGroup group, ProgressMonitor monitor)
Channel[]
checkForAvailableChannels(ProgressMonitor monitor)
Some TvDataServices may need to connect to the Internet to know their channels.boolean
equals(java.lang.Object obj)
Channel[]
getAvailableChannels()
Gets the list of the channels that are available for the given channel group.Channel[]
getChannelsForTvBrowserStart()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tvbrowser.core.plugin.ButtonActionIf
getButtonAction, getButtonActionDescription
-
Methods inherited from interface devplugin.ContextMenuIf
getContextMenuActions
-
Methods inherited from interface devplugin.InfoIf
getPluginCategory
-
Methods inherited from interface tvbrowser.core.tvdataservice.TvDataServiceProxy
checkForAvailableGroups, getAuthenticationPanel, getAvailableChannels, getAvailableGroups, getDataServicePackageName, getId, getInfo, getParentFrame, getSettingsPanel, handleTvBrowserStartFinished, hasSettingsPanel, loadSettings, setParent, setWorkingDirectory, storeSettings, supportsAutoUpdate, supportsDynamicChannelGroups, supportsDynamicChannelList, updateTvData
-
-
-
-
Method Detail
-
checkForAvailableChannels
public abstract Channel[] checkForAvailableChannels(ChannelGroup group, ProgressMonitor monitor) throws TvBrowserException
- Specified by:
checkForAvailableChannels
in interfaceTvDataServiceProxy
- Throws:
TvBrowserException
-
checkForAvailableChannels
public final Channel[] checkForAvailableChannels(ProgressMonitor monitor) throws TvBrowserException
Description copied from interface:TvDataServiceProxy
Some TvDataServices may need to connect to the Internet to know their channels. IfTvDataServiceProxy.supportsDynamicChannelList()
returns true, this method is called to check for available channels.- Specified by:
checkForAvailableChannels
in interfaceTvDataServiceProxy
- Parameters:
monitor
- The progress monitor to use- Returns:
- the list of available channels
- Throws:
TvBrowserException
- Thrown if something went wrong.
-
getChannelsForTvBrowserStart
public Channel[] getChannelsForTvBrowserStart()
- Specified by:
getChannelsForTvBrowserStart
in interfaceTvDataServiceProxy
- Returns:
- The channels that have to be loaded on TVB start.
-
getAvailableChannels
public Channel[] getAvailableChannels()
Description copied from interface:TvDataServiceProxy
Gets the list of the channels that are available for the given channel group.- Specified by:
getAvailableChannels
in interfaceTvDataServiceProxy
- Returns:
- The array with the available channels.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-