| 
    Kodi Documentation 22.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 (CGUIInfoManager *infoMgr) | 
| 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 | 
| 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, allowing it to update it's current value.   | |
| const std::string & | GetExpression () const | 
| bool | ListItemDependent () const | 
Protected Attributes | |
| 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   | |
| CGUIInfoManager * | m_infoMgr | 
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.
| contextWindow | the context (window id) where this condition is being evaluated | 
| item | the item used to evaluate the bool | 
      
  | 
  inline | 
      
  | 
  inlinevirtual | 
Reimplemented in INFO::InfoExpression, and INFO::InfoSingle.
      
  | 
  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::InfoExpression, and INFO::InfoSingle.
      
  | 
  protected | 
contextual information to go with the condition
      
  | 
  protected | 
original expression
      
  | 
  protected | 
      
  | 
  protected | 
do not cache if a listitem pointer is given
      
  | 
  protected | 
current value