[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / settings / SettingConditions.h
blobf51d9e0eaf1ae486fdf31cf8b4e8c194b97c58c0
1 /*
2 * Copyright (C) 2014-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 "settings/lib/SettingConditions.h"
13 #include <set>
14 #include <string>
16 class CProfile;
17 class CProfileManager;
19 class CSettingConditions
21 public:
22 static void Initialize();
23 static void Deinitialize();
25 static const CProfile& GetCurrentProfile();
27 static const std::set<std::string>& GetSimpleConditions() { return m_simpleConditions; }
28 static const std::map<std::string, SettingConditionCheck>& GetComplexConditions() { return m_complexConditions; }
30 static bool Check(const std::string& condition,
31 const std::string& value = "",
32 const std::shared_ptr<const CSetting>& setting = NULL);
34 private:
35 // Initialization parameters
36 static const CProfileManager *m_profileManager;
38 static std::set<std::string> m_simpleConditions;
39 static std::map<std::string, SettingConditionCheck> m_complexConditions;