kodi
SkinGUIInfo.h
1 /*
2  * Copyright (C) 2012-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 #include "guilib/guiinfo/GUIInfoProvider.h"
12 
13 namespace KODI
14 {
15 namespace GUILIB
16 {
17 namespace GUIINFO
18 {
19 
20 class CGUIInfo;
21 
23 {
24 public:
25  CSkinGUIInfo() = default;
26  ~CSkinGUIInfo() override = default;
27 
28  // KODI::GUILIB::GUIINFO::IGUIInfoProvider implementation
29  bool InitCurrentItem(CFileItem *item) override;
30  bool GetLabel(std::string& value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) const override;
31  bool GetInt(int& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override;
32  bool GetBool(bool& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override;
33 };
34 
35 } // namespace GUIINFO
36 } // namespace GUILIB
37 } // namespace KODI
bool GetBool(bool &value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override
Get a GUIInfoManager bool value.
Definition: SkinGUIInfo.cpp:103
Definition: GUIListItem.h:29
Definition: GUIInfoProvider.h:23
bool GetInt(int &value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override
Get a GUIInfoManager integer value.
Definition: SkinGUIInfo.cpp:85
bool InitCurrentItem(CFileItem *item) override
Init a new current guiinfo manager item. Gets called whenever the active guiinfo manager item changes...
Definition: SkinGUIInfo.cpp:24
Definition: AudioDecoder.h:18
bool GetLabel(std::string &value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) const override
Get a GUIInfoManager label string.
Definition: SkinGUIInfo.cpp:29
Definition: SkinGUIInfo.h:22
Definition: GUIInfo.h:23
Represents a file on a share.
Definition: FileItem.h:102