Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
INFO::InfoExpression Class Reference

Class to wrap active boolean expressions. More...

#include <InfoExpression.h>

Inheritance diagram for INFO::InfoExpression:
INFO::InfoBool

Public Member Functions

 InfoExpression (const std::string &expression, int context, unsigned int &refreshCounter)
 
 ~InfoExpression () override=default
 
void Initialize () override
 
void Update (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. More...
 
- Public Member Functions inherited from INFO::InfoBool
 InfoBool (const std::string &expression, int context, unsigned int &refreshCounter)
 
virtual ~InfoBool ()=default
 
bool Get (const CGUIListItem *item=NULL)
 Get the value of this info bool This is called to update (if dirty) and fetch the value of the info bool. More...
 
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
 current value More...
 
int m_context
 contextual information to go with the condition More...
 
bool m_listItemDependent
 do not cache if a listitem pointer is given More...
 
std::string m_expression
 original expression More...
 

Detailed Description

Class to wrap active boolean expressions.

Constructor & Destructor Documentation

◆ InfoExpression()

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

◆ ~InfoExpression()

INFO::InfoExpression::~InfoExpression ( )
overridedefault

Member Function Documentation

◆ Initialize()

void InfoExpression::Initialize ( void  )
overridevirtual

Reimplemented from INFO::InfoBool.

◆ Update()

void InfoExpression::Update ( 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: