xbmc
Public Member Functions | List of all members
KODI::GUILIB::GUIINFO::IGUIInfoProvider Class Referenceabstract
Inheritance diagram for KODI::GUILIB::GUIINFO::IGUIInfoProvider:
Inheritance graph
[legend]

Public Member Functions

virtual bool InitCurrentItem (CFileItem *item)=0
 Init a new current guiinfo manager item. Gets called whenever the active guiinfo manager item changes. More...
 
virtual bool GetLabel (std::string &value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) const =0
 Get a GUIInfoManager label string. More...
 
virtual bool GetFallbackLabel (std::string &value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback)=0
 Get a GUIInfoManager label fallback string. Will be called if none of the registered provider's GetLabel() implementation has returned success. More...
 
virtual bool GetInt (int &value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const =0
 Get a GUIInfoManager integer value. More...
 
virtual bool GetBool (bool &value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const =0
 Get a GUIInfoManager bool value. More...
 
virtual void UpdateAVInfo (const AudioStreamInfo &audioInfo, const VideoStreamInfo &videoInfo, const SubtitleStreamInfo &subtitleInfo)=0
 Set new audio/video stream info data. More...
 

Member Function Documentation

◆ GetBool()

virtual bool KODI::GUILIB::GUIINFO::IGUIInfoProvider::GetBool ( bool &  value,
const CGUIListItem item,
int  contextWindow,
const CGUIInfo info 
) const
pure virtual

Get a GUIInfoManager bool value.

Parameters
valueWill be filled with the requested value.
itemThe item to get the value for. Can be nullptr.
contextWindowThe context window. Can be 0.
infoThe GUI info (label id + additional data).
Returns
True if the value was filled successfully, false otherwise.

Implemented in PVR::CPVRGUIInfo, KODI::GUILIB::GUIINFO::CPlayerGUIInfo, KODI::GUILIB::GUIINFO::CVideoGUIInfo, KODI::GUILIB::GUIINFO::CMusicGUIInfo, KODI::GUILIB::GUIINFO::CLibraryGUIInfo, KODI::GUILIB::GUIINFO::CSystemGUIInfo, KODI::GUILIB::GUIINFO::CGUIControlsGUIInfo, KODI::GUILIB::GUIINFO::CPicturesGUIInfo, KODI::GUILIB::GUIINFO::CAddonsGUIInfo, KODI::GUILIB::GUIINFO::CGamesGUIInfo, KODI::GUILIB::GUIINFO::CSkinGUIInfo, KODI::GUILIB::GUIINFO::CVisualisationGUIInfo, and KODI::GUILIB::GUIINFO::CWeatherGUIInfo.

◆ GetFallbackLabel()

virtual bool KODI::GUILIB::GUIINFO::IGUIInfoProvider::GetFallbackLabel ( std::string &  value,
const CFileItem item,
int  contextWindow,
const CGUIInfo info,
std::string *  fallback 
)
pure virtual

Get a GUIInfoManager label fallback string. Will be called if none of the registered provider's GetLabel() implementation has returned success.

Parameters
valueWill be filled with the requested value.
itemThe item to get the value for. Can be nullptr.
contextWindowThe context window. Can be 0.
infoThe GUI info (label id + additional data).
fallbackA fallback value. Can be nullptr.
Returns
True if the value was filled successfully, false otherwise.

Implemented in PVR::CPVRGUIInfo, KODI::GUILIB::GUIINFO::CVideoGUIInfo, KODI::GUILIB::GUIINFO::CMusicGUIInfo, and KODI::GUILIB::GUIINFO::CGUIInfoProvider.

◆ GetInt()

virtual bool KODI::GUILIB::GUIINFO::IGUIInfoProvider::GetInt ( int &  value,
const CGUIListItem item,
int  contextWindow,
const CGUIInfo info 
) const
pure virtual

Get a GUIInfoManager integer value.

Parameters
valueWill be filled with the requested value.
itemThe item to get the value for. Can be nullptr.
contextWindowThe context window. Can be 0.
infoThe GUI info (label id + additional data).
Returns
True if the value was filled successfully, false otherwise.

Implemented in PVR::CPVRGUIInfo, KODI::GUILIB::GUIINFO::CPlayerGUIInfo, KODI::GUILIB::GUIINFO::CVideoGUIInfo, KODI::GUILIB::GUIINFO::CMusicGUIInfo, KODI::GUILIB::GUIINFO::CLibraryGUIInfo, KODI::GUILIB::GUIINFO::CSystemGUIInfo, KODI::GUILIB::GUIINFO::CGUIControlsGUIInfo, KODI::GUILIB::GUIINFO::CPicturesGUIInfo, KODI::GUILIB::GUIINFO::CAddonsGUIInfo, KODI::GUILIB::GUIINFO::CGamesGUIInfo, KODI::GUILIB::GUIINFO::CSkinGUIInfo, KODI::GUILIB::GUIINFO::CVisualisationGUIInfo, and KODI::GUILIB::GUIINFO::CWeatherGUIInfo.

◆ GetLabel()

virtual bool KODI::GUILIB::GUIINFO::IGUIInfoProvider::GetLabel ( std::string &  value,
const CFileItem item,
int  contextWindow,
const CGUIInfo info,
std::string *  fallback 
) const
pure virtual

Get a GUIInfoManager label string.

Parameters
valueWill be filled with the requested value.
itemThe item to get the value for. Can be nullptr.
contextWindowThe context window. Can be 0.
infoThe GUI info (label id + additional data).
fallbackA fallback value. Can be nullptr.
Returns
True if the value was filled successfully, false otherwise.

Implemented in PVR::CPVRGUIInfo, KODI::GUILIB::GUIINFO::CPlayerGUIInfo, KODI::GUILIB::GUIINFO::CVideoGUIInfo, KODI::GUILIB::GUIINFO::CLibraryGUIInfo, KODI::GUILIB::GUIINFO::CSystemGUIInfo, KODI::GUILIB::GUIINFO::CGUIControlsGUIInfo, KODI::GUILIB::GUIINFO::CPicturesGUIInfo, KODI::GUILIB::GUIINFO::CAddonsGUIInfo, KODI::GUILIB::GUIINFO::CGamesGUIInfo, KODI::GUILIB::GUIINFO::CMusicGUIInfo, KODI::GUILIB::GUIINFO::CSkinGUIInfo, KODI::GUILIB::GUIINFO::CVisualisationGUIInfo, and KODI::GUILIB::GUIINFO::CWeatherGUIInfo.

◆ InitCurrentItem()

virtual bool KODI::GUILIB::GUIINFO::IGUIInfoProvider::InitCurrentItem ( CFileItem item)
pure virtual

◆ UpdateAVInfo()

virtual void KODI::GUILIB::GUIINFO::IGUIInfoProvider::UpdateAVInfo ( const AudioStreamInfo audioInfo,
const VideoStreamInfo videoInfo,
const SubtitleStreamInfo subtitleInfo 
)
pure virtual

Set new audio/video stream info data.

Parameters
audioInfoNew audio stream info.
videoInfoNew video stream info.

Implemented in KODI::GUILIB::GUIINFO::CGUIInfoProvider.


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