Debian Codegraph @

xbmc/guilib/guiinfo/PicturesGUIInfo.h

raw symbols SCIP
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 #include <memory>
14
15 namespace KODI
16 {
17 namespace GUILIB
18 {
19 namespace GUIINFO
20 {
21
22 class CGUIInfo;
23
24 class CPicturesGUIInfo : public CGUIInfoProvider
25 {
26 public:
27 CPicturesGUIInfo();
28 ~CPicturesGUIInfo() override;
29
30 // KODI::GUILIB::GUIINFO::IGUIInfoProvider implementation
31 bool InitCurrentItem(CFileItem *item) override;
32 bool GetLabel(std::string& value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) const override;
33 bool GetInt(int& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override;
34 bool GetBool(bool& value, const CGUIListItem *item, int contextWindow, const CGUIInfo &info) const override;
35
36 void SetCurrentSlide(CFileItem *item);
37 const CFileItem* GetCurrentSlide() const;
38
39 private:
40 std::unique_ptr<CFileItem> m_currentSlide;
41 };
42
43 } // namespace GUIINFO
44 } // namespace GUILIB
45 } // namespace KODI