Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
Addon.h
1/*
2 * Copyright (C) 2005-2018 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 "AddonClass.h"
12#include "AddonString.h"
13#include "Exception.h"
14#include "Settings.h"
15#include "addons/IAddon.h"
16
17namespace XBMCAddon
18{
19 namespace xbmcaddon
20 {
21 XBMCCOMMONS_STANDARD_EXCEPTION(AddonException);
22
59 class Addon : public AddonClass
60 {
61 ADDON::AddonPtr pAddon;
62
63 String getDefaultId();
64
65 String getAddonVersion();
66
67 bool UpdateSettingInActiveDialog(const char* id, const String& value);
68
69 public:
70 explicit Addon(const char* id = NULL);
71 ~Addon() override;
72
73#ifdef DOXYGEN_SHOULD_USE_THIS
96#else
97 String getLocalizedString(int id);
98#endif
99
100#ifdef DOXYGEN_SHOULD_USE_THIS
121#else
123#endif
124
125#ifdef DOXYGEN_SHOULD_USE_THIS
149#else
150 String getSetting(const char* id);
151#endif
152
153#ifdef DOXYGEN_SHOULD_USE_THIS
178#else
179 bool getSettingBool(const char* id);
180#endif
181
182#ifdef DOXYGEN_SHOULD_USE_THIS
207#else
208 int getSettingInt(const char* id);
209#endif
210
211#ifdef DOXYGEN_SHOULD_USE_THIS
236#else
237 double getSettingNumber(const char* id);
238#endif
239
240#ifdef DOXYGEN_SHOULD_USE_THIS
265#else
266 String getSettingString(const char* id);
267#endif
268
269#ifdef DOXYGEN_SHOULD_USE_THIS
295#else
296 void setSetting(const char* id, const String& value);
297#endif
298
299#ifdef DOXYGEN_SHOULD_USE_THIS
327#else
328 bool setSettingBool(const char* id, bool value);
329#endif
330
331#ifdef DOXYGEN_SHOULD_USE_THIS
359#else
360 bool setSettingInt(const char* id, int value);
361#endif
362
363#ifdef DOXYGEN_SHOULD_USE_THIS
391#else
392 bool setSettingNumber(const char* id, double value);
393#endif
394
395#ifdef DOXYGEN_SHOULD_USE_THIS
423#else
424 bool setSettingString(const char* id, const String& value);
425#endif
426
427#ifdef DOXYGEN_SHOULD_USE_THIS
443#else
444 void openSettings();
445#endif
446
447#ifdef DOXYGEN_SHOULD_USE_THIS
477#else
478 String getAddonInfo(const char* id);
479#endif
480 };
482 }
483}
Definition Addon.h:60
Definition Settings.h:53
getSettingInt(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSettingBool(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSettingInt(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSettings(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getAddonInfo(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSettingString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
openSettings()
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSettingNumber(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSettingNumber(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSetting(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getLocalizedString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSetting(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
getSettingBool(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...
setSettingString(...)
<h4><code><span style="font-style: italic;">Function: </span><span style="font-style: bold;"><font co...