C# 클래스 TvPlugin.ChannelNavigator

Handles the logic for channel zapping. This is used by the different GUI modules in the TV section.
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

공개 메소드들

메소드 설명
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