public class ChannelList
extends java.lang.Object
Constructor and Description |
---|
ChannelList() |
Modifier and Type | Method and Description |
---|---|
static void |
checkForJointChannels() |
static void |
completeChannelLoading()
Load the not subscribed channels after TV-Browser start was finished.
|
static void |
createForTvBrowserStart()
Creates the needed channels for TV-Browser start
|
static Channel[] |
getAvailableChannels() |
static Channel |
getChannel(java.lang.String uniqueId) |
static Channel |
getChannel(java.lang.String dataServiceId,
java.lang.String groupId,
java.lang.String country,
java.lang.String channelId)
Returns a new Channel object with the specified IDs or null, if the given
IDs does not exist.
|
static Channel |
getChannel(java.lang.String dataServiceId,
java.lang.String groupId,
java.lang.String country,
java.lang.String channelId,
java.lang.String channelName)
Returns a new Channel object with the specified IDs or a dummy channel or null, if the given
IDs contains null values.
|
static java.lang.Thread |
getChannelLoadThread() |
static int |
getNumberOfSubscribedChannels()
Returns the number of subscribed mAvailableChannels.
|
static int |
getPos(Channel channel)
Gets the position of the channel in the subscribed channel array, or -1 if
the channel isn't a subscribed channel.
|
static Channel[] |
getSubscribedChannels()
Returns all subscribed mAvailableChannels.
|
static Channel[] |
getSubscribedChannels(boolean withDummyChannels)
Returns all subscribed mAvailableChannels.
|
static boolean |
hasCalledChannelValueChangeForChannel(Channel ch)
Gets if the channel values are allowed to be changed for the given channel.
|
static void |
initSubscribedChannels()
Init the subscribed channels
|
static boolean |
isSubscribedChannel(Channel channel)
Returns true, if the specified channel is currently subscribed.
|
static void |
loadChannelTimeLimits()
Writes the channels time limits to data file.
|
static void |
reload()
Reload the channel list.
|
static void |
setSubscribeChannels(Channel[] channelArr)
Marks the specified mAvailableChannels as 'subscribed'.
|
static void |
setSubscribeChannels(Channel[] channelArr,
boolean update)
Sets the subscribed channels.
|
static void |
storeAllSettings()
Stores all settings used for the Channels
|
static void |
storeChannelTimeLimits()
Writes the channels time limits to data file.
|
static void |
subscribeChannel(Channel channel)
Subscribes a channel
|
public static void completeChannelLoading()
public static void reload()
public static void initSubscribedChannels()
public static void storeAllSettings()
public static void createForTvBrowserStart()
public static void subscribeChannel(Channel channel)
channel
- public static void setSubscribeChannels(Channel[] channelArr)
channelArr
- The channels to set as subscribed channels,public static void setSubscribeChannels(Channel[] channelArr, boolean update)
channelArr
- The array with the subscribed channels.update
- ?public static Channel getChannel(java.lang.String dataServiceId, java.lang.String groupId, java.lang.String country, java.lang.String channelId)
dataServiceId
- The id of the data service to get the channel from.groupId
- The id of the channel group.country
- The country of the channel.channelId
- The id of the channel.null
if the channel wasn't
found.public static Channel getChannel(java.lang.String dataServiceId, java.lang.String groupId, java.lang.String country, java.lang.String channelId, java.lang.String channelName)
dataServiceId
- The id of the data service to get the channel from.groupId
- The id of the channel group.country
- The country of the channel.channelId
- The id of the channel.channelName
- null
if the channel wasn't
found.public static int getPos(Channel channel)
channel
- The channel to get the position for.public static Channel[] getAvailableChannels()
public static boolean isSubscribedChannel(Channel channel)
channel
- The channel to check if it is subscribed,public static int getNumberOfSubscribedChannels()
public static Channel[] getSubscribedChannels()
public static Channel[] getSubscribedChannels(boolean withDummyChannels)
withDummyChannels
- Include dummy channels?public static java.lang.Thread getChannelLoadThread()
public static void loadChannelTimeLimits()
public static void storeChannelTimeLimits()
public static boolean hasCalledChannelValueChangeForChannel(Channel ch)
ch
- The channel to check if the value change is allowed.True
if the channel value are allowed to be changed, false
otherwise.public static Channel getChannel(java.lang.String uniqueId)
public static void checkForJointChannels()
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)