[video] fix selection after changing video or extra art
[xbmc.git] / xbmc / pvr / dialogs / GUIDialogPVRClientPriorities.h
bloba6ca62dd6f23d32c3483a4dcf612a88c1cf4ef43
1 /*
2 * Copyright (C) 2017-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 "pvr/addons/PVRClients.h"
12 #include "settings/dialogs/GUIDialogSettingsManualBase.h"
14 #include <map>
15 #include <string>
17 namespace PVR
19 class CGUIDialogPVRClientPriorities : public CGUIDialogSettingsManualBase
21 public:
22 CGUIDialogPVRClientPriorities();
24 protected:
25 // implementation of ISettingCallback
26 void OnSettingChanged(const std::shared_ptr<const CSetting>& setting) override;
28 // specialization of CGUIDialogSettingsBase
29 std::string GetSettingsLabel(const std::shared_ptr<ISetting>& pSetting) override;
30 bool AllowResettingSettings() const override { return false; }
31 bool Save() override;
32 void SetupView() override;
34 // specialization of CGUIDialogSettingsManualBase
35 void InitializeSettings() override;
37 private:
38 CPVRClientMap m_clients;
39 std::map<std::string, int> m_changedValues;
41 } // namespace PVR