blob: 5dedd8f66d31096103ed5ce1901649204f73e96b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "settings/ISubSettings.h"
#include "settings/lib/ISettingCallback.h"
#include "settings/lib/ISettingsHandler.h"
/*!
* \brief Class handling application support for settings.
*/
class CApplicationSettingsHandling : public ISettingCallback,
public ISettingsHandler,
public ISubSettings
{
protected:
void RegisterSettings();
void UnregisterSettings();
bool Load(const TiXmlNode* settings) override;
bool Save(TiXmlNode* settings) const override;
void OnSettingChanged(const std::shared_ptr<const CSetting>& setting) override;
void OnSettingAction(const std::shared_ptr<const CSetting>& setting) override;
bool OnSettingUpdate(const std::shared_ptr<CSetting>& setting,
const char* oldSettingId,
const TiXmlNode* oldSettingNode) override;
};
|