| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#include "interfaces/info/InfoBool.h" |
| 17 |
|
| 18 |
#include <string> |
| 19 |
|
| 20 |
class CGUIListItem; |
| 21 |
|
| 22 |
namespace KODI |
| 23 |
{ |
| 24 |
namespace GUILIB |
| 25 |
{ |
| 26 |
namespace GUIINFO |
| 27 |
{ |
| 28 |
|
| 29 |
class CGUIInfoBool |
| 30 |
{ |
| 31 |
public: |
| 32 |
explicit CGUIInfoBool(bool value = false); |
| 33 |
~CGUIInfoBool(); |
| 34 |
|
| 35 |
operator bool() const { return m_value; } |
| 36 |
|
| 37 |
void Update(int contextWindow, const CGUIListItem* item = nullptr); |
| 38 |
void Parse(const std::string &expression, int context); |
| 39 |
private: |
| 40 |
INFO::InfoPtr m_info; |
| 41 |
bool m_value; |
| 42 |
}; |
| 43 |
|
| 44 |
} |
| 45 |
} |
| 46 |
} |