![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
Base class, wrapping boolean conditions and expressions. More...
#include <InfoBool.h>
Public Member Functions | |
InfoBool (const std::string &expression, int context, unsigned int &refreshCounter) | |
virtual | ~InfoBool ()=default |
virtual void | Initialize () |
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 |
virtual void | Update (const CGUIListItem *item) |
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... | |
const std::string & | GetExpression () const |
bool | ListItemDependent () const |
Protected Attributes | |
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... | |
Base class, wrapping boolean conditions and expressions.
INFO::InfoBool::InfoBool | ( | const std::string & | expression, |
int | context, | ||
unsigned int & | refreshCounter | ||
) |
|
virtualdefault |
|
inline |
Get the value of this info bool This is called to update (if dirty) and fetch the value of the info bool.
item | the item used to evaluate the bool |
|
inline |
Reimplemented in INFO::InfoSingle, and INFO::InfoExpression.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
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 in INFO::InfoSingle, and INFO::InfoExpression.
|
protected |
contextual information to go with the condition
|
protected |
original expression
|
protected |
do not cache if a listitem pointer is given
|
protected |
current value