Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
Settings.h
1/*
2 * Copyright (C) 2017-2021 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include "commons/Exception.h"
12#include "interfaces/legacy/AddonClass.h"
13#include "interfaces/legacy/AddonString.h"
14#include "interfaces/legacy/Exception.h"
15#include "interfaces/legacy/Tuple.h"
16#include "settings/lib/SettingDefinitions.h"
17
18#include <memory>
19#include <string>
20#include <vector>
21
22class CSettingsBase;
23
24namespace XBMCAddon
25{
26namespace xbmcaddon
27{
28
29XBMCCOMMONS_STANDARD_EXCEPTION(SettingCallbacksNotSupportedException);
30
31//
51//
52class Settings : public AddonClass
53{
54public:
55#ifndef DOXYGEN_SHOULD_SKIP_THIS
56#ifndef SWIG
57 std::shared_ptr<CSettingsBase> settings;
58 Settings(std::shared_ptr<CSettingsBase> settings);
59#endif
60 virtual ~Settings() = default;
61#endif
62
63#ifdef DOXYGEN_SHOULD_USE_THIS
83 getBool(...);
84#else
85 bool getBool(const char* id);
86#endif
87
88#ifdef DOXYGEN_SHOULD_USE_THIS
108 getInt(...);
109#else
110 int getInt(const char* id);
111#endif
112
113#ifdef DOXYGEN_SHOULD_USE_THIS
134#else
135 double getNumber(const char* id);
136#endif
137
138#ifdef DOXYGEN_SHOULD_USE_THIS
159#else
160 String getString(const char* id);
161#endif
162
163#ifdef DOXYGEN_SHOULD_USE_THIS
184#else
185 std::vector<bool> getBoolList(const char* id);
186#endif
187
188#ifdef DOXYGEN_SHOULD_USE_THIS
209#else
210 std::vector<int> getIntList(const char* id);
211#endif
212
213#ifdef DOXYGEN_SHOULD_USE_THIS
234#else
235 std::vector<double> getNumberList(const char* id);
236#endif
237
238#ifdef DOXYGEN_SHOULD_USE_THIS
259#else
260 std::vector<String> getStringList(const char* id);
261#endif
262
263#ifdef DOXYGEN_SHOULD_USE_THIS
287#else
288 void setBool(const char* id, bool value);
289#endif
290
291#ifdef DOXYGEN_SHOULD_USE_THIS
314 setInt(...);
315#else
316 void setInt(const char* id, int value);
317#endif
318
319#ifdef DOXYGEN_SHOULD_USE_THIS
343#else
344 void setNumber(const char* id, double value);
345#endif
346
347#ifdef DOXYGEN_SHOULD_USE_THIS
371#else
372 void setString(const char* id, const String& value);
373#endif
374
375#ifdef DOXYGEN_SHOULD_USE_THIS
399#else
400 void setBoolList(const char* id, const std::vector<bool>& values);
401#endif
402
403#ifdef DOXYGEN_SHOULD_USE_THIS
427#else
428 void setIntList(const char* id, const std::vector<int>& values);
429#endif
430
431#ifdef DOXYGEN_SHOULD_USE_THIS
455#else
456 void setNumberList(const char* id, const std::vector<double>& values);
457#endif
458
459#ifdef DOXYGEN_SHOULD_USE_THIS
483#else
484 void setStringList(const char* id, const std::vector<String>& values);
485#endif
486};
488
489} // namespace xbmcaddon
490} // namespace XBMCAddon
Definition Settings.h:53
getNumber(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setStringList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getBoolList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setIntList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getNumberList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getIntList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setBool(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setNumber(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getInt(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getBool(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setBoolList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getStringList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setNumberList(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setInt(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...