kodi
DialogGameVideoFilter.h
1 /*
2  * Copyright (C) 2017-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 "DialogGameVideoSelect.h"
12 #include "FileItem.h"
13 
14 namespace KODI
15 {
16 namespace GAME
17 {
22 {
23 public:
25  ~CDialogGameVideoFilter() override = default;
26 
27 protected:
28  // implementation of CDialogGameVideoSelect
29  std::string GetHeading() override;
30  void PreInit() override;
31  void GetItems(CFileItemList& items) override;
32  void OnItemFocus(unsigned int index) override;
33  unsigned int GetFocusedItem() const override;
34  void PostExit() override;
35  bool OnClickAction() override;
36 
37 private:
38  void InitVideoFilters();
39 
40  static void GetProperties(const CFileItem& item,
41  std::string& videoFilter,
42  std::string& description);
43 
44  CFileItemList m_items;
45 
47  bool m_bHasDescription = false;
48 };
49 } // namespace GAME
50 } // namespace KODI
Definition: DialogGameVideoSelect.h:30
Represents a list of files.
Definition: FileItem.h:702
Definition: AudioDecoder.h:18
Definition: DialogGameVideoFilter.h:21
Represents a file on a share.
Definition: FileItem.h:102