|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object devplugin.AbstractTvDataService
public abstract class AbstractTvDataService
Superclass for all TvDataServices.
Extend this class to provide your own TvDataService.
Constructor Summary | |
---|---|
AbstractTvDataService()
|
Method Summary | |
---|---|
abstract ChannelGroup[] |
checkForAvailableChannelGroups(ProgressMonitor monitor)
|
abstract Channel[] |
checkForAvailableChannels(ChannelGroup group,
ProgressMonitor monitor)
Some TvDataServices may need to connect to the Internet to know their channels. |
Channel[] |
checkForAvailableChannels(ProgressMonitor monitor)
|
Version |
getAPIVersion()
|
SettingsPanel |
getAuthenticationPanel()
If the download of the TV data needs authentication create a panel that contains information about the authentification and the authentication form. |
Channel[] |
getAvailableChannels()
|
abstract Channel[] |
getAvailableChannels(ChannelGroup group)
Gets the list of the channels that are available for the given channel group. |
abstract ChannelGroup[] |
getAvailableGroups()
|
ActionMenu |
getButtonAction()
Gets the action menu with the action supported for toolbar actions. |
java.lang.String |
getButtonActionDescription()
Gets the description for this ButtonActionIf. |
ActionMenu |
getContextMenuActions(Program program)
Gets the actions for the context menu of a program. |
protected java.lang.String[] |
getDefaultMirrors()
get the default mirrors to ask for channel groups |
protected IconLoader |
getIconLoader(java.lang.String groupId,
java.io.File workingDirectory)
|
java.lang.String |
getId()
Gets the id of this ButtonActionIf. |
abstract PluginInfo |
getInfo()
Gets information about this TvDataService |
java.awt.Frame |
getParentFrame()
Gets the parent frame. |
java.lang.String |
getPluginCategory()
Gets the category of this plugin. |
static PluginManager |
getPluginManager()
Use this method to call methods of the plugin manager. |
abstract SettingsPanel |
getSettingsPanel()
|
static Version |
getVersion()
Gets the version of this data service. |
void |
handleTvBrowserStartFinished()
This method is called when the TV-Browser start is complete. |
boolean |
hasRightToDownloadIcons()
|
abstract boolean |
hasSettingsPanel()
A TvDataService can have a settings panel within the settings dialog. |
abstract void |
loadSettings(java.util.Properties settings)
Called by the host-application during start-up. |
void |
setParent(java.awt.Frame parent)
Called by the host-application to provide the parent frame. |
static void |
setPluginManager(PluginManager manager)
Called by the host-application to provide access to the plugin manager. |
abstract void |
setWorkingDirectory(java.io.File dataDir)
This method is called by the host application to set the working folder. |
abstract java.util.Properties |
storeSettings()
Called by the host-application during shut-down. |
boolean |
supportsAutoUpdate()
Gets if the data service supports auto update of data. |
abstract boolean |
supportsDynamicChannelGroups()
|
abstract boolean |
supportsDynamicChannelList()
|
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTvDataService()
Method Detail |
---|
public final Channel[] getAvailableChannels()
public final Channel[] checkForAvailableChannels(ProgressMonitor monitor) throws TvBrowserException
TvBrowserException
public final Version getAPIVersion()
public static final PluginManager getPluginManager()
The plugin manager is your connection to TV-Browser. Every communication between TV-Browser and the data service is either initiated by TV-Browser or made by using the plugin manager.
public static final void setPluginManager(PluginManager manager)
manager
- The plugin manager the plugins should use.public static Version getVersion()
public final void setParent(java.awt.Frame parent)
parent
- The parent frame.public final java.awt.Frame getParentFrame()
The parent frame may be used for showing dialogs.
public void handleTvBrowserStartFinished()
public boolean supportsAutoUpdate()
True
if the data service supports the auto update,
false
otherwise.public ActionMenu getButtonAction()
public final java.lang.String getId()
public java.lang.String getButtonActionDescription()
public ActionMenu getContextMenuActions(Program program)
program
- The program the context menu will be shown for.
null
if the plugin does not provide this feature.protected IconLoader getIconLoader(java.lang.String groupId, java.io.File workingDirectory) throws java.io.IOException
java.io.IOException
protected java.lang.String[] getDefaultMirrors()
public abstract void setWorkingDirectory(java.io.File dataDir)
dataDir
- public abstract ChannelGroup[] getAvailableGroups()
public abstract void updateTvData(TvDataUpdateManager updateManager, Channel[] channelArr, Date startDate, int dateCount, ProgressMonitor monitor) throws TvBrowserException
updateManager
- channelArr
- startDate
- dateCount
- monitor
-
TvBrowserException
public abstract void loadSettings(java.util.Properties settings)
settings
- public abstract java.util.Properties storeSettings()
public abstract boolean hasSettingsPanel()
getSettingsPanel()
method is never called.
public abstract SettingsPanel getSettingsPanel()
public abstract Channel[] getAvailableChannels(ChannelGroup group)
public abstract Channel[] checkForAvailableChannels(ChannelGroup group, ProgressMonitor monitor) throws TvBrowserException
supportsDynamicChannelList()
returns true, this method is
called to check for available channels.
group
- monitor
-
TvBrowserException
public abstract ChannelGroup[] checkForAvailableChannelGroups(ProgressMonitor monitor) throws TvBrowserException
TvBrowserException
public abstract boolean supportsDynamicChannelList()
public abstract boolean supportsDynamicChannelGroups()
public abstract PluginInfo getInfo()
public boolean hasRightToDownloadIcons()
public java.lang.String getPluginCategory()
The category can be one of this values. Note: Don't use the NO_CATEGORY it's only for backward compatibility.
#ALL_CATEGORY
#REMOTE_CONTROL_SOFTWARE_CATEGORY
#REMOTE_CONTROL_HARDWARE_CATEGORY
#ADDITONAL_DATA_SERVICE_SOFTWARE_CATEGORY
#ADDITONAL_DATA_SERVICE_HARDWARE_CATEGORY
#RATINGS_CATEGORY
#OTHER_CATEGORY
public SettingsPanel getAuthenticationPanel()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |