2 * Copyright (C) 2013-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.
15 \brief Interface defining methods to load additional setting values from an
16 XML file being loaded by the settings system.
21 virtual ~ISubSettings() = default;
24 \brief Load settings from the given XML node.
26 \param settings XML node containing setting values
27 \return True if loading the settings was successful, false otherwise.
29 virtual bool Load(const TiXmlNode
*settings
) { return true; }
31 \brief Save settings to the given XML node.
33 \param settings XML node in which the settings will be saved
34 \return True if saving the settings was successful, false otherwise.
36 virtual bool Save(TiXmlNode
*settings
) const { return true; }
38 \brief Clear any loaded setting values.
40 virtual void Clear() { }