[ExecString] combine SplitParameters with identical function of CUtil
[xbmc.git] / xbmc / application / ApplicationSettingsHandling.h
blob5dedd8f66d31096103ed5ce1901649204f73e96b
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 "settings/ISubSettings.h"
12 #include "settings/lib/ISettingCallback.h"
13 #include "settings/lib/ISettingsHandler.h"
15 /*!
16 * \brief Class handling application support for settings.
19 class CApplicationSettingsHandling : public ISettingCallback,
20 public ISettingsHandler,
21 public ISubSettings
23 protected:
24 void RegisterSettings();
25 void UnregisterSettings();
27 bool Load(const TiXmlNode* settings) override;
28 bool Save(TiXmlNode* settings) const override;
29 void OnSettingChanged(const std::shared_ptr<const CSetting>& setting) override;
30 void OnSettingAction(const std::shared_ptr<const CSetting>& setting) override;
31 bool OnSettingUpdate(const std::shared_ptr<CSetting>& setting,
32 const char* oldSettingId,
33 const TiXmlNode* oldSettingNode) override;