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.
11 #include "settings/lib/SettingConditions.h"
17 class CProfileManager
;
19 class CSettingConditions
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
);
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
;