xbmc
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 InitScalingMethods();
39  void InitVideoFilters();
40 
41  static void GetProperties(const CFileItem& item,
42  std::string& videoFilter,
43  std::string& description);
44 
45  CFileItemList m_items;
46 
47  static std::string GetLocalizedString(uint32_t code);
48 
49  struct VideoFilterProperties
50  {
51  std::string path;
52  int nameIndex;
53  int categoryIndex;
54  int descriptionIndex;
55  };
56 
58  bool m_bHasDescription = false;
59 };
60 } // namespace GAME
61 } // namespace KODI
Definition: DialogGameVideoSelect.h:30
Represents a list of files.
Definition: FileItem.h:721
Definition: AudioDecoder.h:18
Definition: inftrees.h:24
Definition: DialogGameVideoFilter.h:21
Represents a file on a share.
Definition: FileItem.h:102