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.
11 #include "application/IApplicationComponent.h"
17 class IMsgTargetCallback
;
18 class IWindowManagerCallback
;
21 * \brief Class handling application support for skin management.
23 class CApplicationSkinHandling
: public IApplicationComponent
25 friend class CApplication
;
28 CApplicationSkinHandling(IMsgTargetCallback
* msgCb
,
29 IWindowManagerCallback
* wCb
,
34 bool OnSettingChanged(const CSetting
& setting
);
35 void ReloadSkin(bool confirm
= false);
38 bool LoadSkin(const std::string
& skinID
);
39 bool LoadCustomWindows();
42 * \brief Called by the application main/render thread for processing
43 * operations belonging to the skin.
45 void ProcessSkin() const;
47 bool m_saveSkinOnUnloading
= true;
48 bool m_confirmSkinChange
= true;
49 bool m_ignoreSkinSettingChanges
= false;
50 IMsgTargetCallback
* m_msgCb
;
51 IWindowManagerCallback
* m_wCb
;
52 bool& m_bInitializing
;