public class TvBrowserDataService extends AbstractTvDataService
Modifier and Type | Field and Description |
---|---|
protected static String |
CHANNEL_GROUPS_FILENAME |
static Localizer |
mLocalizer
The localizer for this class.
|
Constructor and Description |
---|
TvBrowserDataService()
Creates a new TvBrowserDataService.
|
Modifier and Type | Method and Description |
---|---|
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.
|
checkForAvailableChannels, getAPIVersion, getAvailableChannels, getButtonAction, getButtonActionDescription, getContextMenuActions, getId, getParentFrame, getPluginManager, handleTvBrowserStartFinished, setParent, setPluginManager, supportsAutoUpdate
public static final Localizer mLocalizer
protected static final String CHANNEL_GROUPS_FILENAME
public TvBrowserDataService()
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()
File getDataDir()
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
TvBrowserException
public 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.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)