|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdevplugin.AbstractTvDataService
tvbrowserdataservice.TvBrowserDataService
public class TvBrowserDataService
| Field Summary | |
|---|---|
protected static String |
CHANNEL_GROUPS_FILENAME
|
static Localizer |
mLocalizer
The localizer for this class. |
| Constructor Summary | |
|---|---|
TvBrowserDataService()
Creates a new TvBrowserDataService. |
|
| Method Summary | |
|---|---|
void |
addGroup(ChannelGroup group)
Adds a new channel group to the TvBrowserDataService. |
(package private) void |
checkCancelDownload()
|
ChannelGroup[] |
checkForAvailableChannelGroups(ProgressMonitor monitor)
|
Channel[] |
checkForAvailableChannels(ChannelGroup g,
ProgressMonitor monitor)
Some TvDataServices may need to connect to the internet to know their channels. |
protected void |
downloadChannelGroupFile()
|
Channel[] |
getAvailableChannels(ChannelGroup g)
Gets the list of the channels that are available by this data service. |
ChannelGroup[] |
getAvailableGroups()
|
protected Channel |
getChannel(String country,
String channelName)
|
(package private) File |
getDataDir()
|
PluginInfo |
getInfo()
Gets information about this TvDataService |
static TvBrowserDataService |
getInstance()
Get the instance of the TvBrowserDataService. |
SettingsPanel |
getSettingsPanel()
|
ChannelGroup[] |
getUserDefinedChannelGroups()
|
static Version |
getVersion()
|
File |
getWorkingDirectory()
|
boolean |
hasRightToDownloadIcons()
Gets if it is allowed to download the channel icons. |
boolean |
hasSettingsPanel()
A TvDataService can have a settings panel within the settings dialog. |
(package private) boolean |
isDayProgramInDataBase(Date date,
Channel channel)
|
void |
loadSettings(Properties settings)
Called by the host-application during start-up. |
void |
removeGroup(ChannelGroup group)
Removes a channel group from the TvBrowserDataService. |
void |
setTvDataLevel(TvDataLevel[] levelArr)
Sets the level of the TV data. |
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 dataBase,
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 |
|---|
public static final Localizer mLocalizer
protected static final String CHANNEL_GROUPS_FILENAME
| Constructor Detail |
|---|
public TvBrowserDataService()
| Method Detail |
|---|
public static TvBrowserDataService getInstance()
public void setWorkingDirectory(File dataDir)
TvDataService
public File getWorkingDirectory()
public void updateTvData(TvDataUpdateManager dataBase,
Channel[] channelArr,
Date startDate,
int dateCount,
ProgressMonitor monitor)
void checkCancelDownload()
boolean isDayProgramInDataBase(Date date,
Channel channel)
File getDataDir()
protected Channel getChannel(String country,
String channelName)
public void addGroup(ChannelGroup group)
group - The channel group to add.public void removeGroup(ChannelGroup group)
group - The channel group to remove.public void loadSettings(Properties settings)
public void setTvDataLevel(TvDataLevel[] levelArr)
levelArr - The array with the TV data levels.public ChannelGroup[] getUserDefinedChannelGroups()
public Properties storeSettings()
public boolean hasSettingsPanel()
TvDataService
public SettingsPanel getSettingsPanel()
public ChannelGroup[] getAvailableGroups()
public Channel[] getAvailableChannels(ChannelGroup g)
protected void downloadChannelGroupFile()
throws TvBrowserException
TvBrowserException
public ChannelGroup[] checkForAvailableChannelGroups(ProgressMonitor monitor)
throws TvBrowserException
TvBrowserException
public Channel[] checkForAvailableChannels(ChannelGroup g,
ProgressMonitor monitor)
throws TvBrowserException
TvDataService
TvBrowserExceptionpublic boolean supportsDynamicChannelList()
public boolean supportsDynamicChannelGroups()
public static Version getVersion()
public PluginInfo getInfo()
public boolean hasRightToDownloadIcons()
True if the download of the channel icons is allowed.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||