C# Класс TvPlugin.ChannelNavigator

Handles the logic for channel zapping. This is used by the different GUI modules in the TV section.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ChannelNavigator ( ) : System
CheckChannelChange ( ) : bool

Checks if it is time to zap to a different channel. This is called during Process().

GetChannel ( int channelId ) : TvDatabase.Channel
GetChannel ( int channelId, bool allChannels ) : TvDatabase.Channel
GetChannel ( string channelName ) : TvDatabase.Channel
LoadSettings ( Settings xmlreader ) : void
ReLoad ( ) : void
SaveSettings ( Settings xmlwriter ) : void
SetCurrentGroup ( int groupIndex ) : void

Changes the current channel group.

SetCurrentGroup ( string groupname ) : void

Changes the current channel group.

SetupDatabaseConnection ( ) : bool
UpdateCurrentChannel ( ) : void

Ensures that the navigator has the correct current channel (retrieved from the Recorder).

ZapNow ( ) : void
ZapToChannel ( TvDatabase.Channel channel, bool useZapDelay ) : void

Changes the current channel after a specified delay.

ZapToChannel ( int channelNr, bool useZapDelay ) : void

Changes the current channel after a specified delay.

ZapToChannelNumber ( int channelNr, bool useZapDelay ) : void

Changes the current channel (based on channel number) after a specified delay.

ZapToLastViewedChannel ( ) : void

Zaps to the last viewed Channel (without ZapDelay). // mPod

ZapToNextChannel ( bool useZapDelay ) : void

Changes to the next channel in the current group.

ZapToNextGroup ( bool useZapDelay ) : void

Changes to the next channel group.

ZapToPreviousChannel ( bool useZapDelay ) : void

Changes to the previous channel in the current group.

ZapToPreviousGroup ( bool useZapDelay ) : void

Changes to the previous channel group.

Приватные методы

Метод Описание
DoesGroupNameContainGroupName ( TvDatabase.GroupMap groupMap, string groupname ) : bool
GetChannelIndex ( TvDatabase.Channel ch ) : int

Retrieves the index of the current channel.

GetGroupIndex ( string groupname ) : int

Retrieves the index of the group with the specified name.

RaiseOnZapChannelEvent ( ) : void

Описание методов

ChannelNavigator() публичный Метод

public ChannelNavigator ( ) : System
Результат System

CheckChannelChange() публичный Метод

Checks if it is time to zap to a different channel. This is called during Process().
public CheckChannelChange ( ) : bool
Результат bool

GetChannel() публичный Метод

public GetChannel ( int channelId ) : TvDatabase.Channel
channelId int
Результат TvDatabase.Channel

GetChannel() публичный Метод

public GetChannel ( int channelId, bool allChannels ) : TvDatabase.Channel
channelId int
allChannels bool
Результат TvDatabase.Channel

GetChannel() публичный Метод

public GetChannel ( string channelName ) : TvDatabase.Channel
channelName string
Результат TvDatabase.Channel

LoadSettings() публичный Метод

public LoadSettings ( Settings xmlreader ) : void
xmlreader Settings
Результат void

ReLoad() публичный Метод

public ReLoad ( ) : void
Результат void

SaveSettings() публичный Метод

public SaveSettings ( Settings xmlwriter ) : void
xmlwriter Settings
Результат void

SetCurrentGroup() публичный Метод

Changes the current channel group.
public SetCurrentGroup ( int groupIndex ) : void
groupIndex int The id of the group to change to.
Результат void

SetCurrentGroup() публичный Метод

Changes the current channel group.
public SetCurrentGroup ( string groupname ) : void
groupname string The name of the group to change to.
Результат void

SetupDatabaseConnection() публичный Метод

public SetupDatabaseConnection ( ) : bool
Результат bool

UpdateCurrentChannel() публичный Метод

Ensures that the navigator has the correct current channel (retrieved from the Recorder).
public UpdateCurrentChannel ( ) : void
Результат void

ZapNow() публичный Метод

public ZapNow ( ) : void
Результат void

ZapToChannel() публичный Метод

Changes the current channel after a specified delay.
public ZapToChannel ( TvDatabase.Channel channel, bool useZapDelay ) : void
channel TvDatabase.Channel
useZapDelay bool If true, the configured zap delay is used. Otherwise it zaps immediately.
Результат void

ZapToChannel() публичный Метод

Changes the current channel after a specified delay.
public ZapToChannel ( int channelNr, bool useZapDelay ) : void
channelNr int The nr of the channel to change to.
useZapDelay bool If true, the configured zap delay is used. Otherwise it zaps immediately.
Результат void

ZapToChannelNumber() публичный Метод

Changes the current channel (based on channel number) after a specified delay.
public ZapToChannelNumber ( int channelNr, bool useZapDelay ) : void
channelNr int The nr of the channel to change to.
useZapDelay bool If true, the configured zap delay is used. Otherwise it zaps immediately.
Результат void

ZapToLastViewedChannel() публичный Метод

Zaps to the last viewed Channel (without ZapDelay). // mPod
public ZapToLastViewedChannel ( ) : void
Результат void

ZapToNextChannel() публичный Метод

Changes to the next channel in the current group.
public ZapToNextChannel ( bool useZapDelay ) : void
useZapDelay bool If true, the configured zap delay is used. Otherwise it zaps immediately.
Результат void

ZapToNextGroup() публичный Метод

Changes to the next channel group.
public ZapToNextGroup ( bool useZapDelay ) : void
useZapDelay bool
Результат void

ZapToPreviousChannel() публичный Метод

Changes to the previous channel in the current group.
public ZapToPreviousChannel ( bool useZapDelay ) : void
useZapDelay bool If true, the configured zap delay is used. Otherwise it zaps immediately.
Результат void

ZapToPreviousGroup() публичный Метод

Changes to the previous channel group.
public ZapToPreviousGroup ( bool useZapDelay ) : void
useZapDelay bool
Результат void