Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
INFO::InfoSingle Class Reference

Class to wrap active boolean conditions. More...

#include <InfoExpression.h>

Inheritance diagram for INFO::InfoSingle:
INFO::InfoBool

Public Member Functions

 InfoSingle (const std::string &expression, int context, unsigned int &refreshCounter)
 
void Initialize (CGUIInfoManager *infoMgr) override
 
void Update (int contextWindow, const CGUIListItem *item) override
 Update the value of this info bool This is called if and only if the info bool is dirty, allowing it to update it's current value.
 
- Public Member Functions inherited from INFO::InfoBool
 InfoBool (const std::string &expression, int context, unsigned int &refreshCounter)
 
virtual ~InfoBool ()=default
 
bool Get (int contextWindow, const CGUIListItem *item=nullptr)
 Get the value of this info bool This is called to update (if dirty) and fetch the value of the info bool.
 
bool operator== (const InfoBool &right) const
 
bool operator< (const InfoBool &right) const
 
const std::string & GetExpression () const
 
bool ListItemDependent () const
 

Additional Inherited Members

- Protected Attributes inherited from INFO::InfoBool
bool m_value = false
 current value
 
int m_context
 contextual information to go with the condition
 
bool m_listItemDependent = false
 do not cache if a listitem pointer is given
 
std::string m_expression
 original expression
 
CGUIInfoManagerm_infoMgr
 

Detailed Description

Class to wrap active boolean conditions.

Constructor & Destructor Documentation

◆ InfoSingle()

INFO::InfoSingle::InfoSingle ( const std::string & expression,
int context,
unsigned int & refreshCounter )
inline

Member Function Documentation

◆ Initialize()

void InfoSingle::Initialize ( CGUIInfoManager * infoMgr)
overridevirtual

Reimplemented from INFO::InfoBool.

◆ Update()

void InfoSingle::Update ( int contextWindow,
const CGUIListItem * item )
overridevirtual

Update the value of this info bool This is called if and only if the info bool is dirty, allowing it to update it's current value.

Reimplemented from INFO::InfoBool.


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