[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / pvr / guilib / PVRGUIActionListener.h
blobc98e43c8c4e25ed6338e88af3d552a08ed8a1902
1 /*
2 * Copyright (C) 2005-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 "input/actions/interfaces/IActionListener.h"
12 #include "settings/lib/ISettingCallback.h"
14 namespace PVR
17 class CPVRManager;
18 enum class ChannelSwitchMode;
19 enum class PVREvent;
21 class CPVRGUIActionListener : public KODI::ACTION::IActionListener, public ISettingCallback
23 public:
24 CPVRGUIActionListener();
25 ~CPVRGUIActionListener() override;
27 void Init(CPVRManager& mgr);
28 void Deinit(CPVRManager& mgr);
30 // IActionListener implementation
31 bool OnAction(const CAction& action) override;
33 // ISettingCallback implementation
34 void OnSettingChanged(const std::shared_ptr<const CSetting>& setting) override;
35 void OnSettingAction(const std::shared_ptr<const CSetting>& setting) override;
37 void OnPVRManagerEvent(const PVREvent& event);
39 private:
40 CPVRGUIActionListener(const CPVRGUIActionListener&) = delete;
41 CPVRGUIActionListener& operator=(const CPVRGUIActionListener&) = delete;
43 static ChannelSwitchMode GetChannelSwitchMode(int iAction);
46 } // namespace PVR