diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h index 045d5fe..ff51c98 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/libKODI_guilib.h | |||
| @@ -1,24 +1,13 @@ | |||
| 1 | #pragma once | ||
| 2 | /* | 1 | /* |
| 3 | * Copyright (C) 2005-2013 Team XBMC | 2 | * Copyright (C) 2005-2018 Team Kodi |
| 4 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 5 | * | ||
| 6 | * This Program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 9 | * any later version. | ||
| 10 | * | ||
| 11 | * This Program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with XBMC; see the file COPYING. If not, see | ||
| 18 | * <http://www.gnu.org/licenses/>. | ||
| 19 | * | 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 20 | */ | 7 | */ |
| 21 | 8 | ||
| 9 | #pragma once | ||
| 10 | |||
| 22 | #include <string> | 11 | #include <string> |
| 23 | #include <vector> | 12 | #include <vector> |
| 24 | #include <string.h> | 13 | #include <string.h> |
| @@ -539,7 +528,7 @@ public: | |||
| 539 | 528 | ||
| 540 | return m_cb->Control_Spin_GetValue(m_Handle->addonData, m_controlHandle); | 529 | return m_cb->Control_Spin_GetValue(m_Handle->addonData, m_controlHandle); |
| 541 | } | 530 | } |
| 542 | 531 | ||
| 543 | void SetValue(int iValue) | 532 | void SetValue(int iValue) |
| 544 | { | 533 | { |
| 545 | if (m_controlHandle) | 534 | if (m_controlHandle) |
| @@ -730,7 +719,7 @@ public: | |||
| 730 | { | 719 | { |
| 731 | m_controlHandle = m_cb->Window_GetControl_SettingsSlider(m_Handle->addonData, m_Window->GetControlHandle(), controlId); | 720 | m_controlHandle = m_cb->Window_GetControl_SettingsSlider(m_Handle->addonData, m_Window->GetControlHandle(), controlId); |
| 732 | } | 721 | } |
| 733 | 722 | ||
| 734 | ~CAddonGUISettingsSliderControl(void) override = default; | 723 | ~CAddonGUISettingsSliderControl(void) override = default; |
| 735 | 724 | ||
| 736 | void SetVisible(bool yesNo) | 725 | void SetVisible(bool yesNo) |
| @@ -906,7 +895,7 @@ inline bool CAddonGUIRenderingControl::OnDirtyCB(GUIHANDLE cbhdl) | |||
| 906 | { | 895 | { |
| 907 | return static_cast<CAddonGUIRenderingControl*>(cbhdl)->Dirty(); | 896 | return static_cast<CAddonGUIRenderingControl*>(cbhdl)->Dirty(); |
| 908 | } | 897 | } |
| 909 | 898 | ||
| 910 | class CHelper_libKODI_guilib | 899 | class CHelper_libKODI_guilib |
| 911 | { | 900 | { |
| 912 | public: | 901 | public: |
| @@ -931,7 +920,7 @@ public: | |||
| 931 | m_Callbacks = (KodiAPI::GUI::CB_GUILib*)m_Handle->GUILib_RegisterMe(m_Handle->addonData); | 920 | m_Callbacks = (KodiAPI::GUI::CB_GUILib*)m_Handle->GUILib_RegisterMe(m_Handle->addonData); |
| 932 | if (!m_Callbacks) | 921 | if (!m_Callbacks) |
| 933 | fprintf(stderr, "libKODI_guilib-ERROR: GUILib_RegisterMe can't get callback table from Kodi !!!\n"); | 922 | fprintf(stderr, "libKODI_guilib-ERROR: GUILib_RegisterMe can't get callback table from Kodi !!!\n"); |
| 934 | 923 | ||
| 935 | return m_Callbacks != nullptr; | 924 | return m_Callbacks != nullptr; |
| 936 | } | 925 | } |
| 937 | 926 | ||
