[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / pvr / windows / GUIWindowPVRChannels.h
blob257b595264f19b8e2579b430bd066d98fe3aa178
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/PVRChannelNumberInputHandler.h"
13 #include "pvr/windows/GUIWindowPVRBase.h"
15 #include <string>
17 namespace PVR
19 class CGUIWindowPVRChannelsBase : public CGUIWindowPVRBase, public CPVRChannelNumberInputHandler
21 public:
22 CGUIWindowPVRChannelsBase(bool bRadio, int id, const std::string& xmlFile);
23 ~CGUIWindowPVRChannelsBase() override;
25 std::string GetRootPath() const override;
26 bool OnMessage(CGUIMessage& message) override;
27 void GetContextButtons(int itemNumber, CContextButtons& buttons) override;
28 bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
29 bool Update(const std::string& strDirectory, bool updateFilterPath = true) override;
30 void UpdateButtons() override;
31 bool OnAction(const CAction& action) override;
33 // CPVRChannelNumberInputHandler implementation
34 void GetChannelNumbers(std::vector<std::string>& channelNumbers) override;
35 void OnInputDone() override;
37 private:
38 bool OnContextButtonManage(const CFileItemPtr& item, CONTEXT_BUTTON button);
40 void ShowChannelManager();
41 void ShowGroupManager();
42 void UpdateEpg(const CFileItemPtr& item);
44 protected:
45 bool m_bShowHiddenChannels = false;
48 class CGUIWindowPVRTVChannels : public CGUIWindowPVRChannelsBase
50 public:
51 CGUIWindowPVRTVChannels();
53 protected:
54 std::string GetDirectoryPath() override;
57 class CGUIWindowPVRRadioChannels : public CGUIWindowPVRChannelsBase
59 public:
60 CGUIWindowPVRRadioChannels();
62 protected:
63 std::string GetDirectoryPath() override;
65 } // namespace PVR