[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / pvr / windows / GUIWindowPVRRecordings.h
blob21dc269772236d58ba01610f1fdd9f15424bef18
1 /*
2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "dialogs/GUIDialogContextMenu.h"
12 #include "pvr/settings/PVRSettings.h"
13 #include "pvr/windows/GUIWindowPVRBase.h"
14 #include "video/VideoDatabase.h"
15 #include "video/VideoThumbLoader.h"
17 #include <string>
19 class CFileItem;
21 namespace PVR
23 class CGUIWindowPVRRecordingsBase : public CGUIWindowPVRBase
25 public:
26 CGUIWindowPVRRecordingsBase(bool bRadio, int id, const std::string& xmlFile);
27 ~CGUIWindowPVRRecordingsBase() override;
29 void OnWindowLoaded() override;
30 bool OnMessage(CGUIMessage& message) override;
31 bool OnAction(const CAction& action) override;
32 void GetContextButtons(int itemNumber, CContextButtons& buttons) override;
33 bool OnPopupMenu(int iItem) override;
34 bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
35 bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
36 void UpdateButtons() override;
38 protected:
39 std::string GetDirectoryPath() override;
40 void OnPrepareFileItems(CFileItemList& items) override;
41 bool GetFilteredItems(const std::string& filter, CFileItemList& items) override;
43 bool m_bShowDeletedRecordings{false};
45 private:
46 bool OnContextButtonDeleteAll(CFileItem* item, CONTEXT_BUTTON button);
48 CVideoThumbLoader m_thumbLoader;
49 CVideoDatabase m_database;
50 CPVRSettings m_settings;
53 class CGUIWindowPVRTVRecordings : public CGUIWindowPVRRecordingsBase
55 public:
56 CGUIWindowPVRTVRecordings()
57 : CGUIWindowPVRRecordingsBase(false, WINDOW_TV_RECORDINGS, "MyPVRRecordings.xml")
60 std::string GetRootPath() const override;
63 class CGUIWindowPVRRadioRecordings : public CGUIWindowPVRRecordingsBase
65 public:
66 CGUIWindowPVRRadioRecordings()
67 : CGUIWindowPVRRecordingsBase(true, WINDOW_RADIO_RECORDINGS, "MyPVRRecordings.xml")
70 std::string GetRootPath() const override;
72 } // namespace PVR