26 InfoBool(
const std::string &expression,
int context,
unsigned int &refreshCounter);
29 virtual void Initialize(
CGUIInfoManager* infoMgr) { m_infoMgr = infoMgr; }
39 Update(contextWindow, item);
40 else if (m_refreshCounter != m_parentRefreshCounter || m_refreshCounter == 0)
42 Update(contextWindow,
nullptr);
43 m_refreshCounter = m_parentRefreshCounter;
48 bool operator==(
const InfoBool &right)
const 54 bool operator<(
const InfoBool &right)
const 69 const std::string &GetExpression()
const {
return m_expression; }
79 unsigned int m_refreshCounter = 0;
80 unsigned int &m_parentRefreshCounter;
83 typedef std::shared_ptr<InfoBool> InfoPtr;
Definition: GUIInfoManager.h:56
Definition: GUIListItem.h:29
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:67
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:36
Base class, wrapping boolean conditions and expressions.
Definition: InfoBool.h:23