C# Class TvPlugin.ChannelNavigator

Handles the logic for channel zapping. This is used by the different GUI modules in the TV section.
Afficher le fichier Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

ChannelNavigator() public méthode

public ChannelNavigator ( ) : System
Résultat System

CheckChannelChange() public méthode

Checks if it is time to zap to a different channel. This is called during Process().
public CheckChannelChange ( ) : bool
Résultat bool

GetChannel() public méthode

public GetChannel ( int channelId ) : TvDatabase.Channel
channelId int
Résultat TvDatabase.Channel

GetChannel() public méthode

public GetChannel ( int channelId, bool allChannels ) : TvDatabase.Channel
channelId int
allChannels bool
Résultat TvDatabase.Channel

GetChannel() public méthode

public GetChannel ( string channelName ) : TvDatabase.Channel
channelName string
Résultat TvDatabase.Channel

LoadSettings() public méthode

public LoadSettings ( Settings xmlreader ) : void
xmlreader Settings
Résultat void

ReLoad() public méthode

public ReLoad ( ) : void
Résultat void

SaveSettings() public méthode

public SaveSettings ( Settings xmlwriter ) : void
xmlwriter Settings
Résultat void

SetCurrentGroup() public méthode

Changes the current channel group.
public SetCurrentGroup ( int groupIndex ) : void
groupIndex int The id of the group to change to.
Résultat void

SetCurrentGroup() public méthode

Changes the current channel group.
public SetCurrentGroup ( string groupname ) : void
groupname string The name of the group to change to.
Résultat void

SetupDatabaseConnection() public méthode

public SetupDatabaseConnection ( ) : bool
Résultat bool

UpdateCurrentChannel() public méthode

Ensures that the navigator has the correct current channel (retrieved from the Recorder).
public UpdateCurrentChannel ( ) : void
Résultat void

ZapNow() public méthode

public ZapNow ( ) : void
Résultat void

ZapToChannel() public méthode

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.
Résultat void

ZapToChannel() public méthode

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.
Résultat void

ZapToChannelNumber() public méthode

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.
Résultat void

ZapToLastViewedChannel() public méthode

Zaps to the last viewed Channel (without ZapDelay). // mPod
public ZapToLastViewedChannel ( ) : void
Résultat void

ZapToNextChannel() public méthode

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.
Résultat void

ZapToNextGroup() public méthode

Changes to the next channel group.
public ZapToNextGroup ( bool useZapDelay ) : void
useZapDelay bool
Résultat void

ZapToPreviousChannel() public méthode

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.
Résultat void

ZapToPreviousGroup() public méthode

Changes to the previous channel group.
public ZapToPreviousGroup ( bool useZapDelay ) : void
useZapDelay bool
Résultat void