kodi
Public Member Functions | List of all members
PVR::CPVRGUIChannelNavigator Class Reference

Public Member Functions

template<typename A >
void Subscribe (A *owner, void(A::*fn)(const PVRPreviewAndPlayerShowInfoChangedEvent &))
 Subscribe to the event stream for changes of channel preview and player show info. More...
 
template<typename A >
void Unsubscribe (A *obj)
 Unsubscribe from the event stream for changes of channel preview and player show info. More...
 
void Notify (const KODI::GUILIB::GUIINFO::PlayerShowInfoChangedEvent &event)
 CEventStream callback for player show info flag changes. More...
 
void SelectNextChannel (ChannelSwitchMode eSwitchMode)
 Select the next channel in currently playing channel group, relative to the currently selected channel. More...
 
void SelectPreviousChannel (ChannelSwitchMode eSwitchMode)
 Select the previous channel in currently playing channel group, relative to the currently selected channel. More...
 
void SwitchToCurrentChannel ()
 Switch to the currently selected channel.
 
bool IsPreview () const
 Query the state of channel preview. More...
 
bool IsPreviewAndShowInfo () const
 Query the state of channel preview and channel info OSD. More...
 
void ShowInfo ()
 Show the channel info OSD.
 
void HideInfo ()
 Hide the channel info OSD.
 
void ToggleInfo ()
 Toggle the channel info OSD visibility.
 
void SetPlayingChannel (const std::shared_ptr< CPVRChannelGroupMember > &groupMember)
 Set a new playing channel group member and show the channel info OSD for the new channel. More...
 
void ClearPlayingChannel ()
 Clear the currently playing channel and hide the channel info OSD.
 

Member Function Documentation

◆ IsPreview()

bool CPVRGUIChannelNavigator::IsPreview ( ) const

Query the state of channel preview.

Returns
True, if the currently selected channel is different from the currently playing channel, False otherwise.

◆ IsPreviewAndShowInfo()

bool CPVRGUIChannelNavigator::IsPreviewAndShowInfo ( ) const

Query the state of channel preview and channel info OSD.

Returns
True, if the currently selected channel is different from the currently playing channel and channel info OSD is active, False otherwise.

◆ Notify()

void CPVRGUIChannelNavigator::Notify ( const KODI::GUILIB::GUIINFO::PlayerShowInfoChangedEvent event)

CEventStream callback for player show info flag changes.

Parameters
eventThe event.

◆ SelectNextChannel()

void CPVRGUIChannelNavigator::SelectNextChannel ( ChannelSwitchMode  eSwitchMode)

Select the next channel in currently playing channel group, relative to the currently selected channel.

Parameters
eSwitchModecontrols whether only the channel info OSD is triggered or whether additionally a (delayed) channel switch will be done.

◆ SelectPreviousChannel()

void CPVRGUIChannelNavigator::SelectPreviousChannel ( ChannelSwitchMode  eSwitchMode)

Select the previous channel in currently playing channel group, relative to the currently selected channel.

Parameters
eSwitchModecontrols whether only the channel info OSD is triggered or whether additionally a (delayed) channel switch will be done.

◆ SetPlayingChannel()

void CPVRGUIChannelNavigator::SetPlayingChannel ( const std::shared_ptr< CPVRChannelGroupMember > &  groupMember)

Set a new playing channel group member and show the channel info OSD for the new channel.

Parameters
groupMemberThe new playing channel group member

◆ Subscribe()

template<typename A >
void PVR::CPVRGUIChannelNavigator::Subscribe ( A owner,
void(A::*)(const PVRPreviewAndPlayerShowInfoChangedEvent &)  fn 
)
inline

Subscribe to the event stream for changes of channel preview and player show info.

Parameters
ownerThe subscriber.
fnThe callback function of the subscriber for the events.

◆ Unsubscribe()

template<typename A >
void PVR::CPVRGUIChannelNavigator::Unsubscribe ( A obj)
inline

Unsubscribe from the event stream for changes of channel preview and player show info.

Parameters
objThe subscriber.

The documentation for this class was generated from the following files: