| 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 |
{ |
| 18 |
/*! |
| 19 |
* \ingroup games |
| 20 |
*/ |
| 21 |
class CDialogGameVideoFilter : public CDialogGameVideoSelect |
| 22 |
{ |
| 23 |
public: |
| 24 |
CDialogGameVideoFilter(); |
| 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 |
|
| 46 |
//! \brief Set to true when a description has first been set |
| 47 |
bool m_bHasDescription = false; |
| 48 |
}; |
| 49 |
} // namespace GAME |
| 50 |
} // namespace KODI |