Debian Codegraph @

xbmc/guilib/guiinfo/GUIInfoBool.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 /*!
12 \file GUIInfoBool.h
13 \brief
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 } // namespace GUIINFO
45 } // namespace GUILIB
46 } // namespace KODI