25 InfoBool(
const std::string &expression,
int context,
unsigned int &refreshCounter);
28 virtual void Initialize() {}
38 Update(contextWindow, item);
39 else if (m_refreshCounter != m_parentRefreshCounter || m_refreshCounter == 0)
41 Update(contextWindow,
nullptr);
42 m_refreshCounter = m_parentRefreshCounter;
47 bool operator==(
const InfoBool &right)
const 53 bool operator<(
const InfoBool &right)
const 68 const std::string &GetExpression()
const {
return m_expression; }
78 unsigned int m_refreshCounter;
79 unsigned int &m_parentRefreshCounter;
82 typedef std::shared_ptr<InfoBool> InfoPtr;
Definition: GUIListItem.h:30
bool m_listItemDependent
do not cache if a listitem pointer is given
Definition: InfoBool.h:74
Definition: ContextMenuItem.h:23
virtual void Update(int contextWindow, const CGUIListItem *item)
Update the value of this info bool This is called if and only if the info bool is dirty...
Definition: InfoBool.h:66
bool m_value
current value
Definition: InfoBool.h:72
int m_context
contextual information to go with the condition
Definition: InfoBool.h:73
std::string m_expression
original expression
Definition: InfoBool.h:75
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 b...
Definition: InfoBool.h:35
Base class, wrapping boolean conditions and expressions.
Definition: InfoBool.h:22