summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui')
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt8
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt16
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/button.h35
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/edit.h79
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/fade_label.h34
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/image.h37
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/label.h32
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/progress.h32
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/radio_button.h35
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/rendering.h38
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/settings_slider.h48
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/slider.h48
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/spin.h58
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/text_box.h36
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/definitions.h106
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt14
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/context_menu.h33
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h43
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/filebrowser.h77
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/keyboard.h74
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h54
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/ok.h37
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h45
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/select.h42
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/text_viewer.h30
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/yes_no.h50
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/general.h37
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt5
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/action_ids.h763
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/list_item.h54
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/window.h183
31 files changed, 2183 insertions, 0 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt
new file mode 100644
index 0000000..53c4e60
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/CMakeLists.txt
@@ -0,0 +1,8 @@
1set(HEADERS definitions.h
2 general.h
3 list_item.h
4 window.h)
5
6if(NOT ENABLE_STATIC_LIBS)
7 core_add_library(addons_kodi-dev-kit_include_kodi_c-api_gui)
8endif()
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt
new file mode 100644
index 0000000..2e6cd53
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/CMakeLists.txt
@@ -0,0 +1,16 @@
1set(HEADERS button.h
2 edit.h
3 fade_label.h
4 image.h
5 label.h
6 progress.h
7 radio_button.h
8 rendering.h
9 settings_slider.h
10 slider.h
11 spin.h
12 text_box.h)
13
14if(NOT ENABLE_STATIC_LIBS)
15 core_add_library(addons_kodi-dev-kit_include_kodi_c-api_gui_controls)
16endif()
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/button.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/button.h
new file mode 100644
index 0000000..84fd822
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/button.h
@@ -0,0 +1,35 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_BUTTON_H
12#define C_API_GUI_CONTROLS_BUTTON_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_button
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
26 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*set_label2)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
28 char* (*get_label2)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
29 } AddonToKodiFuncTable_kodi_gui_control_button;
30
31#ifdef __cplusplus
32} /* extern "C" */
33#endif /* __cplusplus */
34
35#endif /* !C_API_GUI_CONTROLS_BUTTON_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/edit.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/edit.h
new file mode 100644
index 0000000..ca38b27
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/edit.h
@@ -0,0 +1,79 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_EDIT_H
12#define C_API_GUI_CONTROLS_EDIT_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 //============================================================================
22 /// @ingroup cpp_kodi_gui_windows_controls_CEdit_Defs
23 /// @{
24 /// @anchor AddonGUIInputType
25 /// @brief Text input types used on kodi::gui::controls::CEdit
26 enum AddonGUIInputType
27 {
28 /// Text inside edit control only readable
29 ADDON_INPUT_TYPE_READONLY = -1,
30 /// Normal text entries
31 ADDON_INPUT_TYPE_TEXT = 0,
32 /// To use on edit control only numeric numbers
33 ADDON_INPUT_TYPE_NUMBER,
34 /// To insert seconds
35 ADDON_INPUT_TYPE_SECONDS,
36 /// To insert time
37 ADDON_INPUT_TYPE_TIME,
38 /// To insert a date
39 ADDON_INPUT_TYPE_DATE,
40 /// Used for write in IP addresses
41 ADDON_INPUT_TYPE_IPADDRESS,
42 /// Text field used as password entry field with not visible text
43 ADDON_INPUT_TYPE_PASSWORD,
44 /// Text field used as password entry field with not visible text but
45 /// returned as MD5 value
46 ADDON_INPUT_TYPE_PASSWORD_MD5,
47 /// Use text field for search purpose
48 ADDON_INPUT_TYPE_SEARCH,
49 /// Text field as filter
50 ADDON_INPUT_TYPE_FILTER,
51 ///
52 ADDON_INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW
53 };
54 /// @}
55 //----------------------------------------------------------------------------
56
57 typedef struct AddonToKodiFuncTable_kodi_gui_control_edit
58 {
59 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
60 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
61 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
62 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
63 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
64 char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
65 void (*set_cursor_position)(KODI_HANDLE kodiBase,
66 KODI_GUI_CONTROL_HANDLE handle,
67 unsigned int position);
68 unsigned int (*get_cursor_position)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
69 void (*set_input_type)(KODI_HANDLE kodiBase,
70 KODI_GUI_CONTROL_HANDLE handle,
71 int type,
72 const char* heading);
73 } AddonToKodiFuncTable_kodi_gui_control_edit;
74
75#ifdef __cplusplus
76} /* extern "C" */
77#endif /* __cplusplus */
78
79#endif /* !C_API_GUI_CONTROLS_EDIT_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/fade_label.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/fade_label.h
new file mode 100644
index 0000000..fea014b
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/fade_label.h
@@ -0,0 +1,34 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_FADE_LABEL_H
12#define C_API_GUI_CONTROLS_FADE_LABEL_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_fade_label
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*add_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
25 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
26 void (*set_scrolling)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool scroll);
27 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
28 } AddonToKodiFuncTable_kodi_gui_control_fade_label;
29
30#ifdef __cplusplus
31} /* extern "C" */
32#endif /* __cplusplus */
33
34#endif /* !C_API_GUI_CONTROLS_FADE_LABEL_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/image.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/image.h
new file mode 100644
index 0000000..4a46e6d
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/image.h
@@ -0,0 +1,37 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_IMAGE_H
12#define C_API_GUI_CONTROLS_IMAGE_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_image
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_filename)(KODI_HANDLE kodiBase,
25 KODI_GUI_CONTROL_HANDLE handle,
26 const char* filename,
27 bool use_cache);
28 void (*set_color_diffuse)(KODI_HANDLE kodiBase,
29 KODI_GUI_CONTROL_HANDLE handle,
30 uint32_t color_diffuse);
31 } AddonToKodiFuncTable_kodi_gui_control_image;
32
33#ifdef __cplusplus
34} /* extern "C" */
35#endif /* __cplusplus */
36
37#endif /* !C_API_GUI_CONTROLS_IMAGE_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/label.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/label.h
new file mode 100644
index 0000000..d8a9fe4
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/label.h
@@ -0,0 +1,32 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_LABEL_H
12#define C_API_GUI_CONTROLS_LABEL_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_label
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
25 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
26 } AddonToKodiFuncTable_kodi_gui_control_label;
27
28#ifdef __cplusplus
29} /* extern "C" */
30#endif /* __cplusplus */
31
32#endif /* !C_API_GUI_CONTROLS_LABEL_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/progress.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/progress.h
new file mode 100644
index 0000000..88638e0
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/progress.h
@@ -0,0 +1,32 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_PROGRESS_H
12#define C_API_GUI_CONTROLS_PROGRESS_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_progress
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float percent);
25 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
26 } AddonToKodiFuncTable_kodi_gui_control_progress;
27
28#ifdef __cplusplus
29} /* extern "C" */
30#endif /* __cplusplus */
31
32#endif /* !C_API_GUI_CONTROLS_PROGRESS_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/radio_button.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/radio_button.h
new file mode 100644
index 0000000..a672d95
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/radio_button.h
@@ -0,0 +1,35 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_RADIO_BUTTON_H
12#define C_API_GUI_CONTROLS_RADIO_BUTTON_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_radio_button
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
26 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*set_selected)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool selected);
28 bool (*is_selected)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
29 } AddonToKodiFuncTable_kodi_gui_control_radio_button;
30
31#ifdef __cplusplus
32} /* extern "C" */
33#endif /* __cplusplus */
34
35#endif /* !C_API_GUI_CONTROLS_RADIO_BUTTON_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/rendering.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/rendering.h
new file mode 100644
index 0000000..d4053a6
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/rendering.h
@@ -0,0 +1,38 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_RENDERING_H
12#define C_API_GUI_CONTROLS_RENDERING_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_rendering
22 {
23 void (*set_callbacks)(
24 KODI_HANDLE kodiBase,
25 KODI_GUI_CONTROL_HANDLE handle,
26 KODI_GUI_CLIENT_HANDLE clienthandle,
27 bool (*createCB)(KODI_GUI_CLIENT_HANDLE, int, int, int, int, ADDON_HARDWARE_CONTEXT),
28 void (*renderCB)(KODI_GUI_CLIENT_HANDLE),
29 void (*stopCB)(KODI_GUI_CLIENT_HANDLE),
30 bool (*dirtyCB)(KODI_GUI_CLIENT_HANDLE));
31 void (*destroy)(void* kodiBase, KODI_GUI_CONTROL_HANDLE handle);
32 } AddonToKodiFuncTable_kodi_gui_control_rendering;
33
34#ifdef __cplusplus
35} /* extern "C" */
36#endif /* __cplusplus */
37
38#endif /* !C_API_GUI_CONTROLS_RENDERING_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/settings_slider.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/settings_slider.h
new file mode 100644
index 0000000..2cbc972
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/settings_slider.h
@@ -0,0 +1,48 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_SETTINGS_SLIDER_H
12#define C_API_GUI_CONTROLS_SETTINGS_SLIDER_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_settings_slider
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
26 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*set_int_range)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int start, int end);
28 void (*set_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
29 int (*get_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
30 void (*set_int_interval)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int interval);
31 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float percent);
32 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
33 void (*set_float_range)(KODI_HANDLE kodiBase,
34 KODI_GUI_CONTROL_HANDLE handle,
35 float start,
36 float end);
37 void (*set_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
38 float (*get_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
39 void (*set_float_interval)(KODI_HANDLE kodiBase,
40 KODI_GUI_CONTROL_HANDLE handle,
41 float interval);
42 } AddonToKodiFuncTable_kodi_gui_control_settings_slider;
43
44#ifdef __cplusplus
45} /* extern "C" */
46#endif /* __cplusplus */
47
48#endif /* !C_API_GUI_CONTROLS_SETTINGS_SLIDER_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/slider.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/slider.h
new file mode 100644
index 0000000..0a67208
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/slider.h
@@ -0,0 +1,48 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_SLIDER_H
12#define C_API_GUI_CONTROLS_SLIDER_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_slider
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
26 char* (*get_description)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*set_int_range)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int start, int end);
28 void (*set_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
29 int (*get_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
30 void (*set_int_interval)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int interval);
31 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float percent);
32 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
33 void (*set_float_range)(KODI_HANDLE kodiBase,
34 KODI_GUI_CONTROL_HANDLE handle,
35 float start,
36 float end);
37 void (*set_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
38 float (*get_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
39 void (*set_float_interval)(KODI_HANDLE kodiBase,
40 KODI_GUI_CONTROL_HANDLE handle,
41 float interval);
42 } AddonToKodiFuncTable_kodi_gui_control_slider;
43
44#ifdef __cplusplus
45} /* extern "C" */
46#endif /* __cplusplus */
47
48#endif /* !C_API_GUI_CONTROLS_SLIDER_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/spin.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/spin.h
new file mode 100644
index 0000000..d5e5c86
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/spin.h
@@ -0,0 +1,58 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_SPIN_H
12#define C_API_GUI_CONTROLS_SPIN_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_spin
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
26 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*set_type)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int type);
28 void (*add_string_label)(KODI_HANDLE kodiBase,
29 KODI_GUI_CONTROL_HANDLE handle,
30 const char* label,
31 const char* value);
32 void (*set_string_value)(KODI_HANDLE kodiBase,
33 KODI_GUI_CONTROL_HANDLE handle,
34 const char* value);
35 char* (*get_string_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
36 void (*add_int_label)(KODI_HANDLE kodiBase,
37 KODI_GUI_CONTROL_HANDLE handle,
38 const char* label,
39 int value);
40 void (*set_int_range)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int start, int end);
41 void (*set_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
42 int (*get_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
43 void (*set_float_range)(KODI_HANDLE kodiBase,
44 KODI_GUI_CONTROL_HANDLE handle,
45 float start,
46 float end);
47 void (*set_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
48 float (*get_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
49 void (*set_float_interval)(KODI_HANDLE kodiBase,
50 KODI_GUI_CONTROL_HANDLE handle,
51 float interval);
52 } AddonToKodiFuncTable_kodi_gui_control_spin;
53
54#ifdef __cplusplus
55} /* extern "C" */
56#endif /* __cplusplus */
57
58#endif /* !C_API_GUI_CONTROLS_SPIN_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/text_box.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/text_box.h
new file mode 100644
index 0000000..276d04c
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/controls/text_box.h
@@ -0,0 +1,36 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_CONTROLS_TEXT_BOX_H
12#define C_API_GUI_CONTROLS_TEXT_BOX_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_control_text_box
22 {
23 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
25 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
26 char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27 void (*scroll)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, unsigned int scroll);
28 void (*set_auto_scrolling)(
29 KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int delay, int time, int repeat);
30 } AddonToKodiFuncTable_kodi_gui_control_text_box;
31
32#ifdef __cplusplus
33} /* extern "C" */
34#endif /* __cplusplus */
35
36#endif /* !C_API_GUI_CONTROLS_TEXT_BOX_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/definitions.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/definitions.h
new file mode 100644
index 0000000..ec60bc2
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/definitions.h
@@ -0,0 +1,106 @@
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#ifndef C_API_GUI_DEFINITIONS_H
12#define C_API_GUI_DEFINITIONS_H
13
14#include "../addon_base.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef void* KODI_GUI_HANDLE;
22 typedef void* KODI_GUI_CLIENT_HANDLE;
23 typedef void* KODI_GUI_CONTROL_HANDLE;
24 typedef void* KODI_GUI_LISTITEM_HANDLE;
25 typedef void* KODI_GUI_WINDOW_HANDLE;
26
27 struct AddonToKodiFuncTable_kodi_gui_general;
28 struct AddonToKodiFuncTable_kodi_gui_control_button;
29 struct AddonToKodiFuncTable_kodi_gui_control_edit;
30 struct AddonToKodiFuncTable_kodi_gui_control_fade_label;
31 struct AddonToKodiFuncTable_kodi_gui_control_label;
32 struct AddonToKodiFuncTable_kodi_gui_control_image;
33 struct AddonToKodiFuncTable_kodi_gui_control_progress;
34 struct AddonToKodiFuncTable_kodi_gui_control_radio_button;
35 struct AddonToKodiFuncTable_kodi_gui_control_rendering;
36 struct AddonToKodiFuncTable_kodi_gui_control_settings_slider;
37 struct AddonToKodiFuncTable_kodi_gui_control_slider;
38 struct AddonToKodiFuncTable_kodi_gui_control_spin;
39 struct AddonToKodiFuncTable_kodi_gui_control_text_box;
40 struct AddonToKodiFuncTable_kodi_gui_dialogContextMenu;
41 struct AddonToKodiFuncTable_kodi_gui_dialogExtendedProgress;
42 struct AddonToKodiFuncTable_kodi_gui_dialogFileBrowser;
43 struct AddonToKodiFuncTable_kodi_gui_dialogKeyboard;
44 struct AddonToKodiFuncTable_kodi_gui_dialogNumeric;
45 struct AddonToKodiFuncTable_kodi_gui_dialogOK;
46 struct AddonToKodiFuncTable_kodi_gui_dialogProgress;
47 struct AddonToKodiFuncTable_kodi_gui_dialogSelect;
48 struct AddonToKodiFuncTable_kodi_gui_dialogTextViewer;
49 struct AddonToKodiFuncTable_kodi_gui_dialogYesNo;
50 struct AddonToKodiFuncTable_kodi_gui_listItem;
51 struct AddonToKodiFuncTable_kodi_gui_window;
52
53 typedef struct AddonToKodiFuncTable_kodi_gui
54 {
55 struct AddonToKodiFuncTable_kodi_gui_general* general;
56 struct AddonToKodiFuncTable_kodi_gui_control_button* control_button;
57 struct AddonToKodiFuncTable_kodi_gui_control_edit* control_edit;
58 struct AddonToKodiFuncTable_kodi_gui_control_fade_label* control_fade_label;
59 struct AddonToKodiFuncTable_kodi_gui_control_label* control_label;
60 struct AddonToKodiFuncTable_kodi_gui_control_image* control_image;
61 struct AddonToKodiFuncTable_kodi_gui_control_progress* control_progress;
62 struct AddonToKodiFuncTable_kodi_gui_control_radio_button* control_radio_button;
63 struct AddonToKodiFuncTable_kodi_gui_control_rendering* control_rendering;
64 struct AddonToKodiFuncTable_kodi_gui_control_settings_slider* control_settings_slider;
65 struct AddonToKodiFuncTable_kodi_gui_control_slider* control_slider;
66 struct AddonToKodiFuncTable_kodi_gui_control_spin* control_spin;
67 struct AddonToKodiFuncTable_kodi_gui_control_text_box* control_text_box;
68 KODI_HANDLE control_dummy1;
69 KODI_HANDLE control_dummy2;
70 KODI_HANDLE control_dummy3;
71 KODI_HANDLE control_dummy4;
72 KODI_HANDLE control_dummy5;
73 KODI_HANDLE control_dummy6;
74 KODI_HANDLE control_dummy7;
75 KODI_HANDLE control_dummy8;
76 KODI_HANDLE control_dummy9;
77 KODI_HANDLE control_dummy10; /* This and above used to add new controls */
78 struct AddonToKodiFuncTable_kodi_gui_dialogContextMenu* dialogContextMenu;
79 struct AddonToKodiFuncTable_kodi_gui_dialogExtendedProgress* dialogExtendedProgress;
80 struct AddonToKodiFuncTable_kodi_gui_dialogFileBrowser* dialogFileBrowser;
81 struct AddonToKodiFuncTable_kodi_gui_dialogKeyboard* dialogKeyboard;
82 struct AddonToKodiFuncTable_kodi_gui_dialogNumeric* dialogNumeric;
83 struct AddonToKodiFuncTable_kodi_gui_dialogOK* dialogOK;
84 struct AddonToKodiFuncTable_kodi_gui_dialogProgress* dialogProgress;
85 struct AddonToKodiFuncTable_kodi_gui_dialogSelect* dialogSelect;
86 struct AddonToKodiFuncTable_kodi_gui_dialogTextViewer* dialogTextViewer;
87 struct AddonToKodiFuncTable_kodi_gui_dialogYesNo* dialogYesNo;
88 KODI_HANDLE dialog_dummy1;
89 KODI_HANDLE dialog_dummy2;
90 KODI_HANDLE dialog_dummy3;
91 KODI_HANDLE dialog_dummy4;
92 KODI_HANDLE dialog_dummy5;
93 KODI_HANDLE dialog_dummy6;
94 KODI_HANDLE dialog_dummy7;
95 KODI_HANDLE dialog_dummy8;
96 KODI_HANDLE dialog_dummy9;
97 KODI_HANDLE dialog_dummy10; /* This and above used to add new dialogs */
98 struct AddonToKodiFuncTable_kodi_gui_listItem* listItem;
99 struct AddonToKodiFuncTable_kodi_gui_window* window;
100 } AddonToKodiFuncTable_kodi_gui;
101
102#ifdef __cplusplus
103} /* extern "C" */
104#endif /* __cplusplus */
105
106#endif /* !C_API_GUI_DEFINITIONS_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt
new file mode 100644
index 0000000..bc35e91
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/CMakeLists.txt
@@ -0,0 +1,14 @@
1set(HEADERS context_menu.h
2 extended_progress.h
3 filebrowser.h
4 keyboard.h
5 numeric.h
6 ok.h
7 progress.h
8 select.h
9 text_viewer.h
10 yes_no.h)
11
12if(NOT ENABLE_STATIC_LIBS)
13 core_add_library(addons_kodi-dev-kit_include_kodi_c-api_gui_dialogs)
14endif()
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/context_menu.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/context_menu.h
new file mode 100644
index 0000000..8bb5370
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/context_menu.h
@@ -0,0 +1,33 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_CONTEXT_MENU_H
12#define C_API_GUI_DIALOGS_CONTEXT_MENU_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogContextMenu
22 {
23 int (*open)(KODI_HANDLE kodiBase,
24 const char* heading,
25 const char* entries[],
26 unsigned int size);
27 } AddonToKodiFuncTable_kodi_gui_dialogContextMenu;
28
29#ifdef __cplusplus
30} /* extern "C" */
31#endif /* __cplusplus */
32
33#endif /* !C_API_GUI_DIALOGS_CONTEXT_MENU_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h
new file mode 100644
index 0000000..e53588f
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h
@@ -0,0 +1,43 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H
12#define C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogExtendedProgress
22 {
23 KODI_GUI_HANDLE (*new_dialog)(KODI_HANDLE kodiBase, const char* title);
24 void (*delete_dialog)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
25 char* (*get_title)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
26 void (*set_title)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* title);
27 char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
28 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* text);
29 bool (*is_finished)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
30 void (*mark_finished)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
31 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
32 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, float percentage);
33 void (*set_progress)(KODI_HANDLE kodiBase,
34 KODI_GUI_HANDLE handle,
35 int currentItem,
36 int itemCount);
37 } AddonToKodiFuncTable_kodi_gui_dialogExtendedProgress;
38
39#ifdef __cplusplus
40} /* extern "C" */
41#endif /* __cplusplus */
42
43#endif /* !C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/filebrowser.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/filebrowser.h
new file mode 100644
index 0000000..7ae4fac
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/filebrowser.h
@@ -0,0 +1,77 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_FILEBROWSER_H
12#define C_API_GUI_DIALOGS_FILEBROWSER_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogFileBrowser
22 {
23 bool (*show_and_get_directory)(KODI_HANDLE kodiBase,
24 const char* shares,
25 const char* heading,
26 const char* path_in,
27 char** path_out,
28 bool writeOnly);
29 bool (*show_and_get_file)(KODI_HANDLE kodiBase,
30 const char* shares,
31 const char* mask,
32 const char* heading,
33 const char* path_in,
34 char** path_out,
35 bool use_thumbs,
36 bool use_file_directories);
37 bool (*show_and_get_file_from_dir)(KODI_HANDLE kodiBase,
38 const char* directory,
39 const char* mask,
40 const char* heading,
41 const char* path_in,
42 char** path_out,
43 bool use_thumbs,
44 bool use_file_directories,
45 bool singleList);
46 bool (*show_and_get_file_list)(KODI_HANDLE kodiBase,
47 const char* shares,
48 const char* mask,
49 const char* heading,
50 char*** file_list,
51 unsigned int* entries,
52 bool use_thumbs,
53 bool use_file_directories);
54 bool (*show_and_get_source)(KODI_HANDLE kodiBase,
55 const char* path_in,
56 char** path_out,
57 bool allow_network_shares,
58 const char* additional_share,
59 const char* type);
60 bool (*show_and_get_image)(KODI_HANDLE kodiBase,
61 const char* shares,
62 const char* heading,
63 const char* path_in,
64 char** path_out);
65 bool (*show_and_get_image_list)(KODI_HANDLE kodiBase,
66 const char* shares,
67 const char* heading,
68 char*** file_list,
69 unsigned int* entries);
70 void (*clear_file_list)(KODI_HANDLE kodiBase, char*** file_list, unsigned int entries);
71 } AddonToKodiFuncTable_kodi_gui_dialogFileBrowser;
72
73#ifdef __cplusplus
74} /* extern "C" */
75#endif /* __cplusplus */
76
77#endif /* !C_API_GUI_DIALOGS_FILEBROWSER_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/keyboard.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/keyboard.h
new file mode 100644
index 0000000..fc3c34c
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/keyboard.h
@@ -0,0 +1,74 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_KEYBOARD_H
12#define C_API_GUI_DIALOGS_KEYBOARD_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogKeyboard
22 {
23 bool (*show_and_get_input_with_head)(KODI_HANDLE kodiBase,
24 const char* text_in,
25 char** text_out,
26 const char* heading,
27 bool allow_empty_result,
28 bool hiddenInput,
29 unsigned int auto_close_ms);
30 bool (*show_and_get_input)(KODI_HANDLE kodiBase,
31 const char* text_in,
32 char** text_out,
33 bool allow_empty_result,
34 unsigned int auto_close_ms);
35 bool (*show_and_get_new_password_with_head)(KODI_HANDLE kodiBase,
36 const char* password_in,
37 char** password_out,
38 const char* heading,
39 bool allow_empty_result,
40 unsigned int auto_close_ms);
41 bool (*show_and_get_new_password)(KODI_HANDLE kodiBase,
42 const char* password_in,
43 char** password_out,
44 unsigned int auto_close_ms);
45 bool (*show_and_verify_new_password_with_head)(KODI_HANDLE kodiBase,
46 char** password_out,
47 const char* heading,
48 bool allow_empty_result,
49 unsigned int auto_close_ms);
50 bool (*show_and_verify_new_password)(KODI_HANDLE kodiBase,
51 char** password_out,
52 unsigned int auto_close_ms);
53 int (*show_and_verify_password)(KODI_HANDLE kodiBase,
54 const char* password_in,
55 char** password_out,
56 const char* heading,
57 int retries,
58 unsigned int auto_close_ms);
59 bool (*show_and_get_filter)(KODI_HANDLE kodiBase,
60 const char* text_in,
61 char** text_out,
62 bool searching,
63 unsigned int auto_close_ms);
64 bool (*send_text_to_active_keyboard)(KODI_HANDLE kodiBase,
65 const char* text,
66 bool close_keyboard);
67 bool (*is_keyboard_activated)(KODI_HANDLE kodiBase);
68 } AddonToKodiFuncTable_kodi_gui_dialogKeyboard;
69
70#ifdef __cplusplus
71} /* extern "C" */
72#endif /* __cplusplus */
73
74#endif /* !C_API_GUI_DIALOGS_KEYBOARD_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h
new file mode 100644
index 0000000..df23cd7
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/numeric.h
@@ -0,0 +1,54 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_NUMERIC_H
12#define C_API_GUI_DIALOGS_NUMERIC_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogNumeric
22 {
23 bool (*show_and_verify_new_password)(KODI_HANDLE kodiBase, char** password);
24 int (*show_and_verify_password)(KODI_HANDLE kodiBase,
25 const char* password,
26 const char* heading,
27 int retries);
28 bool (*show_and_verify_input)(KODI_HANDLE kodiBase,
29 const char* verify_in,
30 char** verify_out,
31 const char* heading,
32 bool verify_input);
33 bool (*show_and_get_time)(KODI_HANDLE kodiBase, struct tm* time, const char* heading);
34 bool (*show_and_get_date)(KODI_HANDLE kodiBase, struct tm* date, const char* heading);
35 bool (*show_and_get_ip_address)(KODI_HANDLE kodiBase,
36 const char* ip_address_in,
37 char** ip_address_out,
38 const char* heading);
39 bool (*show_and_get_number)(KODI_HANDLE kodiBase,
40 const char* input_in,
41 char** input_out,
42 const char* heading,
43 unsigned int auto_close_ms);
44 bool (*show_and_get_seconds)(KODI_HANDLE kodiBase,
45 const char* time_in,
46 char** time_out,
47 const char* heading);
48 } AddonToKodiFuncTable_kodi_gui_dialogNumeric;
49
50#ifdef __cplusplus
51} /* extern "C" */
52#endif /* __cplusplus */
53
54#endif /* !C_API_GUI_DIALOGS_NUMERIC_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/ok.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/ok.h
new file mode 100644
index 0000000..9f37051
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/ok.h
@@ -0,0 +1,37 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_OK_H
12#define C_API_GUI_DIALOGS_OK_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogOK
22 {
23 void (*show_and_get_input_single_text)(KODI_HANDLE kodiBase,
24 const char* heading,
25 const char* text);
26 void (*show_and_get_input_line_text)(KODI_HANDLE kodiBase,
27 const char* heading,
28 const char* line0,
29 const char* line1,
30 const char* line2);
31 } AddonToKodiFuncTable_kodi_gui_dialogOK;
32
33#ifdef __cplusplus
34} /* extern "C" */
35#endif /* __cplusplus */
36
37#endif /* !C_API_GUI_DIALOGS_OK_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h
new file mode 100644
index 0000000..f1c8972
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h
@@ -0,0 +1,45 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_PROGRESS_H
12#define C_API_GUI_DIALOGS_PROGRESS_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogProgress
22 {
23 KODI_GUI_HANDLE (*new_dialog)(KODI_HANDLE kodiBase);
24 void (*delete_dialog)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
25 void (*open)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
26 void (*set_heading)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* heading);
27 void (*set_line)(KODI_HANDLE kodiBase,
28 KODI_GUI_HANDLE handle,
29 unsigned int lineNo,
30 const char* line);
31 void (*set_can_cancel)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool canCancel);
32 bool (*is_canceled)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
33 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int percentage);
34 int (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
35 void (*show_progress_bar)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool pnOff);
36 void (*set_progress_max)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int max);
37 void (*set_progress_advance)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int nSteps);
38 bool (*abort)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
39 } AddonToKodiFuncTable_kodi_gui_dialogProgress;
40
41#ifdef __cplusplus
42} /* extern "C" */
43#endif /* __cplusplus */
44
45#endif /* !C_API_GUI_DIALOGS_PROGRESS_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/select.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/select.h
new file mode 100644
index 0000000..41ab82f
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/select.h
@@ -0,0 +1,42 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_SELECT_H
12#define C_API_GUI_DIALOGS_SELECT_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogSelect
22 {
23 int (*open)(KODI_HANDLE kodiBase,
24 const char* heading,
25 const char* entries[],
26 unsigned int size,
27 int selected,
28 unsigned int autoclose);
29 bool (*open_multi_select)(KODI_HANDLE kodiBase,
30 const char* heading,
31 const char* entryIDs[],
32 const char* entryNames[],
33 bool entriesSelected[],
34 unsigned int size,
35 unsigned int autoclose);
36 } AddonToKodiFuncTable_kodi_gui_dialogSelect;
37
38#ifdef __cplusplus
39} /* extern "C" */
40#endif /* __cplusplus */
41
42#endif /* !C_API_GUI_DIALOGS_SELECT_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/text_viewer.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/text_viewer.h
new file mode 100644
index 0000000..eb38b0b
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/text_viewer.h
@@ -0,0 +1,30 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_TEXT_VIEWER_H
12#define C_API_GUI_DIALOGS_TEXT_VIEWER_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogTextViewer
22 {
23 void (*open)(KODI_HANDLE kodiBase, const char* heading, const char* text);
24 } AddonToKodiFuncTable_kodi_gui_dialogTextViewer;
25
26#ifdef __cplusplus
27} /* extern "C" */
28#endif /* __cplusplus */
29
30#endif /* !C_API_GUI_DIALOGS_TEXT_VIEWER_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/yes_no.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/yes_no.h
new file mode 100644
index 0000000..01ed806
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/yes_no.h
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_DIALOGS_YES_NO_H
12#define C_API_GUI_DIALOGS_YES_NO_H
13
14#include "../definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_dialogYesNo
22 {
23 bool (*show_and_get_input_single_text)(KODI_HANDLE kodiBase,
24 const char* heading,
25 const char* text,
26 bool* canceled,
27 const char* noLabel,
28 const char* yesLabel);
29 bool (*show_and_get_input_line_text)(KODI_HANDLE kodiBase,
30 const char* heading,
31 const char* line0,
32 const char* line1,
33 const char* line2,
34 const char* noLabel,
35 const char* yesLabel);
36 bool (*show_and_get_input_line_button_text)(KODI_HANDLE kodiBase,
37 const char* heading,
38 const char* line0,
39 const char* line1,
40 const char* line2,
41 bool* canceled,
42 const char* noLabel,
43 const char* yesLabel);
44 } AddonToKodiFuncTable_kodi_gui_dialogYesNo;
45
46#ifdef __cplusplus
47} /* extern "C" */
48#endif /* __cplusplus */
49
50#endif /* !C_API_GUI_DIALOGS_YES_NO_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/general.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/general.h
new file mode 100644
index 0000000..d0d256c
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/general.h
@@ -0,0 +1,37 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_GENERAL_H
12#define C_API_GUI_GENERAL_H
13
14#include "definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_general
22 {
23 void (*lock)();
24 void (*unlock)();
25 int (*get_screen_height)(KODI_HANDLE kodiBase);
26 int (*get_screen_width)(KODI_HANDLE kodiBase);
27 int (*get_video_resolution)(KODI_HANDLE kodiBase);
28 int (*get_current_window_dialog_id)(KODI_HANDLE kodiBase);
29 int (*get_current_window_id)(KODI_HANDLE kodiBase);
30 ADDON_HARDWARE_CONTEXT (*get_hw_context)(KODI_HANDLE kodiBase);
31 } AddonToKodiFuncTable_kodi_gui_general;
32
33#ifdef __cplusplus
34} /* extern "C" */
35#endif /* __cplusplus */
36
37#endif /* !C_API_GUI_GENERAL_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt
new file mode 100644
index 0000000..c0bbd11
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/CMakeLists.txt
@@ -0,0 +1,5 @@
1set(HEADERS action_ids.h)
2
3if(NOT ENABLE_STATIC_LIBS)
4 core_add_library(addons_kodi-dev-kit_include_kodi_c-api_gui_input)
5endif()
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/action_ids.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/action_ids.h
new file mode 100644
index 0000000..274f3d9
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/input/action_ids.h
@@ -0,0 +1,763 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_ACTION_IDS_H
12#define C_API_GUI_ACTION_IDS_H
13
14/// @defgroup cpp_kodi_gui_Defs_action_ids enum ADDON_ACTION
15/// @ingroup cpp_kodi_gui_Defs
16/// @brief **Action Id's**\n
17/// Actions that we have defined.
18///
19///@{
20enum ADDON_ACTION
21{
22 /// @ingroup cpp_kodi_gui_key_action_ids
23 ///@{
24
25 /// @brief <b>`0 `</b>: None.
26 ADDON_ACTION_NONE = 0,
27
28 /// @brief <b>`1 `</b>: Move left.
29 ADDON_ACTION_MOVE_LEFT = 1,
30
31 /// @brief <b>`2 `</b>: Move right.
32 ADDON_ACTION_MOVE_RIGHT = 2,
33
34 /// @brief <b>`3 `</b>: Move up.
35 ADDON_ACTION_MOVE_UP = 3,
36
37 /// @brief <b>`4 `</b>: Move down.
38 ADDON_ACTION_MOVE_DOWN = 4,
39
40 /// @brief <b>`5 `</b>: Page up.
41 ADDON_ACTION_PAGE_UP = 5,
42
43 /// @brief <b>`6 `</b>: Page down.
44 ADDON_ACTION_PAGE_DOWN = 6,
45
46 /// @brief <b>`7 `</b>: Select item.
47 ADDON_ACTION_SELECT_ITEM = 7,
48
49 /// @brief <b>`8 `</b>: Highlight item.
50 ADDON_ACTION_HIGHLIGHT_ITEM = 8,
51
52 /// @brief <b>`9 `</b>: Parent directory.
53 ADDON_ACTION_PARENT_DIR = 9,
54
55 /// @brief <b>`10 `</b>: Previous menu.
56 ADDON_ACTION_PREVIOUS_MENU = 10,
57
58 /// @brief <b>`11 `</b>: Show info.
59 ADDON_ACTION_SHOW_INFO = 11,
60
61 /// @brief <b>`12 `</b>: Pause.
62 ADDON_ACTION_PAUSE = 12,
63
64 /// @brief <b>`13 `</b>: Stop.
65 ADDON_ACTION_STOP = 13,
66
67 /// @brief <b>`14 `</b>: Next item.
68 ADDON_ACTION_NEXT_ITEM = 14,
69
70 /// @brief <b>`15 `</b>: Previous item.
71 ADDON_ACTION_PREV_ITEM = 15,
72
73 /// @brief <b>`16 `</b>: Can be used to specify specific action in a window, Playback control is handled in ADDON_ACTION_PLAYER_*
74 ADDON_ACTION_FORWARD = 16,
75
76 /// @brief <b>`17 `</b>: Can be used to specify specific action in a window, Playback control is handled in ADDON_ACTION_PLAYER_*
77 ADDON_ACTION_REWIND = 17,
78
79 /// @brief <b>`18 `</b>: Toggle between GUI and movie or GUI and visualisation.
80 ADDON_ACTION_SHOW_GUI = 18,
81
82 /// @brief <b>`19 `</b>: Toggle quick-access zoom modes. Can b used in videoFullScreen.zml window id=2005
83 ADDON_ACTION_ASPECT_RATIO = 19,
84
85 /// @brief <b>`20 `</b>: Seek +1% in the movie. Can b used in videoFullScreen.xml window id=2005
86 ADDON_ACTION_STEP_FORWARD = 20,
87
88 /// @brief <b>`21 `</b>: Seek -1% in the movie. Can b used in videoFullScreen.xml window id=2005
89 ADDON_ACTION_STEP_BACK = 21,
90
91 /// @brief <b>`22 `</b>: Seek +10% in the movie. Can b used in videoFullScreen.xml window id=2005
92 ADDON_ACTION_BIG_STEP_FORWARD = 22,
93
94 /// @brief <b>`23 `</b>: Seek -10% in the movie. Can b used in videoFullScreen.xml window id=2005
95 ADDON_ACTION_BIG_STEP_BACK = 23,
96
97 /// @brief <b>`24 `</b>: Show/hide OSD. Can b used in videoFullScreen.xml window id=2005
98 ADDON_ACTION_SHOW_OSD = 24,
99
100 /// @brief <b>`25 `</b>: Turn subtitles on/off. Can b used in videoFullScreen.xml window id=2005
101 ADDON_ACTION_SHOW_SUBTITLES = 25,
102
103 /// @brief <b>`26 `</b>: Switch to next subtitle of movie. Can b used in videoFullScreen.xml window id=2005
104 ADDON_ACTION_NEXT_SUBTITLE = 26,
105
106 /// @brief <b>`27 `</b>: Show debug info for VideoPlayer
107 ADDON_ACTION_PLAYER_DEBUG = 27,
108
109 /// @brief <b>`28 `</b>: Show next picture of slideshow. Can b used in slideshow.xml window id=2007
110 ADDON_ACTION_NEXT_PICTURE = 28,
111
112 /// @brief <b>`29 `</b>: Show previous picture of slideshow. Can b used in slideshow.xml window id=2007
113 ADDON_ACTION_PREV_PICTURE = 29,
114
115 /// @brief <b>`30 `</b>: Zoom in picture during slideshow. Can b used in slideshow.xml window id=2007
116 ADDON_ACTION_ZOOM_OUT = 30,
117
118 /// @brief <b>`31 `</b>: Zoom out picture during slideshow. Can b used in slideshow.xml window id=2007
119 ADDON_ACTION_ZOOM_IN = 31,
120
121 /// @brief <b>`32 `</b>: Used to toggle between source view and destination view. Can be used in myfiles.xml window id=3
122 ADDON_ACTION_TOGGLE_SOURCE_DEST = 32,
123
124 /// @brief <b>`33 `</b>: Used to toggle between current view and playlist view. Can b used in all mymusic xml files
125 ADDON_ACTION_SHOW_PLAYLIST = 33,
126
127 /// @brief <b>`34 `</b>: Used to queue a item to the playlist. Can b used in all mymusic xml files
128 ADDON_ACTION_QUEUE_ITEM = 34,
129
130 /// @brief <b>`35 `</b>: Not used anymore
131 ADDON_ACTION_REMOVE_ITEM = 35,
132
133 /// @brief <b>`36 `</b>: Not used anymore
134 ADDON_ACTION_SHOW_FULLSCREEN = 36,
135
136 /// @brief <b>`37 `</b>: Zoom 1x picture during slideshow. Can b used in slideshow.xml window id=2007
137 ADDON_ACTION_ZOOM_LEVEL_NORMAL = 37,
138
139 /// @brief <b>`38 `</b>: Zoom 2x picture during slideshow. Can b used in slideshow.xml window id=2007
140 ADDON_ACTION_ZOOM_LEVEL_1 = 38,
141
142 /// @brief <b>`39 `</b>: Zoom 3x picture during slideshow. Can b used in slideshow.xml window id=2007
143 ADDON_ACTION_ZOOM_LEVEL_2 = 39,
144
145 /// @brief <b>`40 `</b>: Zoom 4x picture during slideshow. Can b used in slideshow.xml window id=2007
146 ADDON_ACTION_ZOOM_LEVEL_3 = 40,
147
148 /// @brief <b>`41 `</b>: Zoom 5x picture during slideshow. Can b used in slideshow.xml window id=2007
149 ADDON_ACTION_ZOOM_LEVEL_4 = 41,
150
151 /// @brief <b>`42 `</b>: Zoom 6x picture during slideshow. Can b used in slideshow.xml window id=2007
152 ADDON_ACTION_ZOOM_LEVEL_5 = 42,
153
154 /// @brief <b>`43 `</b>: Zoom 7x picture during slideshow. Can b used in slideshow.xml window id=2007
155 ADDON_ACTION_ZOOM_LEVEL_6 = 43,
156
157 /// @brief <b>`44 `</b>: Zoom 8x picture during slideshow. Can b used in slideshow.xml window id=2007
158 ADDON_ACTION_ZOOM_LEVEL_7 = 44,
159
160 /// @brief <b>`45 `</b>: Zoom 9x picture during slideshow. Can b used in slideshow.xml window id=2007
161 ADDON_ACTION_ZOOM_LEVEL_8 = 45,
162
163 /// @brief <b>`46 `</b>: Zoom 10x picture during slideshow. Can b used in slideshow.xml window id=2007
164 ADDON_ACTION_ZOOM_LEVEL_9 = 46,
165
166 /// @brief <b>`47 `</b>: Select next arrow. Can b used in: settingsScreenCalibration.xml windowid=11
167 ADDON_ACTION_CALIBRATE_SWAP_ARROWS = 47,
168
169 /// @brief <b>`48 `</b>: Reset calibration to defaults. Can b used in: `settingsScreenCalibration.xml` windowid=11/settingsUICalibration.xml windowid=10
170 ADDON_ACTION_CALIBRATE_RESET = 48,
171
172 /// @brief <b>`49 `</b>: Analog thumbstick move. Can b used in: `slideshow.xml`
173 /// windowid=2007/settingsScreenCalibration.xml windowid=11/settingsUICalibration.xml
174 /// windowid=10
175 /// @note see also ADDON_ACTION_ANALOG_MOVE_X_LEFT, ADDON_ACTION_ANALOG_MOVE_X_RIGHT,
176 /// ADDON_ACTION_ANALOG_MOVE_Y_UP, ADDON_ACTION_ANALOG_MOVE_Y_DOWN
177 ADDON_ACTION_ANALOG_MOVE = 49,
178
179 /// @brief <b>`50 `</b>: Rotate current picture clockwise during slideshow. Can be used in slideshow.xml window id=2007
180 ADDON_ACTION_ROTATE_PICTURE_CW = 50,
181
182 /// @brief <b>`51 `</b>: Rotate current picture counterclockwise during slideshow. Can be used in slideshow.xml window id=2007
183 ADDON_ACTION_ROTATE_PICTURE_CCW = 51,
184
185 /// @brief <b>`52 `</b>: Decrease subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005
186 ADDON_ACTION_SUBTITLE_DELAY_MIN = 52,
187
188 /// @brief <b>`53 `</b>: Increase subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005
189 ADDON_ACTION_SUBTITLE_DELAY_PLUS = 53,
190
191 /// @brief <b>`54 `</b>: Increase avsync delay. Can b used in videoFullScreen.xml window id=2005
192 ADDON_ACTION_AUDIO_DELAY_MIN = 54,
193
194 /// @brief <b>`55 `</b>: Decrease avsync delay. Can b used in videoFullScreen.xml window id=2005
195 ADDON_ACTION_AUDIO_DELAY_PLUS = 55,
196
197 /// @brief <b>`56 `</b>: Select next language in movie. Can b used in videoFullScreen.xml window id=2005
198 ADDON_ACTION_AUDIO_NEXT_LANGUAGE = 56,
199
200 /// @brief <b>`57 `</b>: Switch 2 next resolution. Can b used during screen calibration settingsScreenCalibration.xml windowid=11
201 ADDON_ACTION_CHANGE_RESOLUTION = 57,
202
203 /// @brief <b>`58 `</b>: remote keys 0-9. are used by multiple windows
204 /// for example in videoFullScreen.xml window id=2005 you can
205 /// enter time (mmss) to jump to particular point in the movie
206 /// with spincontrols you can enter 3digit number to quickly set
207 /// spincontrol to desired value
208 ///
209 /// Remote key 0
210 ADDON_ACTION_REMOTE_0 = 58,
211
212 /// @brief <b>`59 `</b>: Remote key 1
213 ADDON_ACTION_REMOTE_1 = 59,
214
215 /// @brief <b>`60 `</b>: Remote key 2
216 ADDON_ACTION_REMOTE_2 = 60,
217
218 /// @brief <b>`61 `</b>: Remote key 3
219 ADDON_ACTION_REMOTE_3 = 61,
220
221 /// @brief <b>`62 `</b>: Remote key 4
222 ADDON_ACTION_REMOTE_4 = 62,
223
224 /// @brief <b>`63 `</b>: Remote key 5
225 ADDON_ACTION_REMOTE_5 = 63,
226
227 /// @brief <b>`64 `</b>: Remote key 6
228 ADDON_ACTION_REMOTE_6 = 64,
229
230 /// @brief <b>`65 `</b>: Remote key 7
231 ADDON_ACTION_REMOTE_7 = 65,
232
233 /// @brief <b>`66 `</b>: Remote key 8
234 ADDON_ACTION_REMOTE_8 = 66,
235
236 /// @brief <b>`67 `</b>: Remote key 9
237 ADDON_ACTION_REMOTE_9 = 67,
238
239 /// @brief <b>`69 `</b>: Show player process info (video decoder, pixel format, pvr signal strength and the like
240 ADDON_ACTION_PLAYER_PROCESS_INFO = 69,
241
242 /// @brief <b>`70 `</b>: Program select.
243 ADDON_ACTION_PLAYER_PROGRAM_SELECT = 70,
244
245 /// @brief <b>`71 `</b>: Resolution select.
246 ADDON_ACTION_PLAYER_RESOLUTION_SELECT = 71,
247
248 /// @brief <b>`76 `</b>: Jumps a few seconds back during playback of movie. Can b used in videoFullScreen.xml window id=2005
249 ADDON_ACTION_SMALL_STEP_BACK = 76,
250
251 /// @brief <b>`77 `</b>: FF in current file played. global action, can be used anywhere
252 ADDON_ACTION_PLAYER_FORWARD = 77,
253
254 /// @brief <b>`78 `</b>: RW in current file played. global action, can be used anywhere
255 ADDON_ACTION_PLAYER_REWIND = 78,
256
257 /// @brief <b>`79 `</b>: Play current song. Unpauses song and sets playspeed to 1x. global action, can be used anywhere
258 ADDON_ACTION_PLAYER_PLAY = 79,
259
260 /// @brief <b>`80 `</b>: Delete current selected item. Can be used in myfiles.xml window id=3 and in myvideoTitle.xml window id=25
261 ADDON_ACTION_DELETE_ITEM = 80,
262
263 /// @brief <b>`81 `</b>: Copy current selected item. Can be used in myfiles.xml window id=3
264 ADDON_ACTION_COPY_ITEM = 81,
265
266 /// @brief <b>`82 `</b>: move current selected item. Can be used in myfiles.xml window id=3
267 ADDON_ACTION_MOVE_ITEM = 82,
268
269 /// @brief <b>`85 `</b>: Take a screenshot.
270 ADDON_ACTION_TAKE_SCREENSHOT = 85,
271
272 /// @brief <b>`87 `</b>: Rename item.
273 ADDON_ACTION_RENAME_ITEM = 87,
274
275 /// @brief <b>`87 `</b>: Volume up.
276 ADDON_ACTION_VOLUME_UP = 88,
277
278 /// @brief <b>`87 `</b>: Volume down.
279 ADDON_ACTION_VOLUME_DOWN = 89,
280
281 /// @brief <b>`90 `</b>: Volume amplication.
282 ADDON_ACTION_VOLAMP = 90,
283
284 /// @brief <b>`90 `</b>: Mute.
285 ADDON_ACTION_MUTE = 91,
286
287 /// @brief <b>`90 `</b>: Nav back.
288 ADDON_ACTION_NAV_BACK = 92,
289
290 /// @brief <b>`90 `</b>: Volume amp up,
291 ADDON_ACTION_VOLAMP_UP = 93,
292
293 /// @brief <b>`94 `</b>: Volume amp down.
294 ADDON_ACTION_VOLAMP_DOWN = 94,
295
296 /// @brief <b>`95 `</b>: Creates an episode bookmark on the currently playing video file containing more than one
297 /// episode
298 ADDON_ACTION_CREATE_EPISODE_BOOKMARK = 95,
299
300 /// @brief <b>`96 `</b>: Creates a bookmark of the currently playing video file
301 ADDON_ACTION_CREATE_BOOKMARK = 96,
302
303 /// @brief <b>`97 `</b>: Goto the next chapter, if not available perform a big step forward
304 ADDON_ACTION_CHAPTER_OR_BIG_STEP_FORWARD = 97,
305
306 /// @brief <b>`98 `</b>: Goto the previous chapter, if not available perform a big step back
307 ADDON_ACTION_CHAPTER_OR_BIG_STEP_BACK = 98,
308
309 /// @brief <b>`99 `</b>: Switch to next subtitle of movie, but will not enable/disable the subtitles. Can be used
310 /// in videoFullScreen.xml window id=2005
311 ADDON_ACTION_CYCLE_SUBTITLE = 99,
312
313 /// @brief <b>`100`</b>: Mouse action values start.
314 ///
315 /// Ends with @ref ADDON_ACTION_MOUSE_END.
316 ADDON_ACTION_MOUSE_START = 100,
317
318 /// @brief <b>`100`</b>: Mouse left click.
319 ADDON_ACTION_MOUSE_LEFT_CLICK = 100,
320
321 /// @brief <b>`101`</b>: Mouse right click.
322 ADDON_ACTION_MOUSE_RIGHT_CLICK = 101,
323
324 /// @brief <b>`102`</b>: Mouse middle click.
325 ADDON_ACTION_MOUSE_MIDDLE_CLICK = 102,
326
327 /// @brief <b>`103`</b>: Mouse double click.
328 ADDON_ACTION_MOUSE_DOUBLE_CLICK = 103,
329
330 /// @brief <b>`104`</b>: Mouse wheel up.
331 ADDON_ACTION_MOUSE_WHEEL_UP = 104,
332
333 /// @brief <b>`105`</b>: Mouse wheel down.
334 ADDON_ACTION_MOUSE_WHEEL_DOWN = 105,
335
336 /// @brief <b>`106`</b>: Mouse drag.
337 ADDON_ACTION_MOUSE_DRAG = 106,
338
339 /// @brief <b>`107`</b>: Mouse move.
340 ADDON_ACTION_MOUSE_MOVE = 107,
341
342 /// @brief <b>`108`</b>: Mouse long click.
343 ADDON_ACTION_MOUSE_LONG_CLICK = 108,
344
345 /// @brief <b>`109`</b>: Mouse drag end.
346 ADDON_ACTION_MOUSE_DRAG_END = 109,
347
348 /// @brief <b>`109`</b>: Mouse action values end.
349 ///
350 /// Starts with @ref ADDON_ACTION_MOUSE_START.
351 ADDON_ACTION_MOUSE_END = 109,
352
353 /// @brief <b>`110`</b>: Backspace.
354 ADDON_ACTION_BACKSPACE = 110,
355
356 /// @brief <b>`111`</b>: Scroll up.
357 ADDON_ACTION_SCROLL_UP = 111,
358
359 /// @brief <b>`112`</b>: Scroll down.
360 ADDON_ACTION_SCROLL_DOWN = 112,
361
362 /// @brief <b>`113`</b>: Analog forward.
363 ADDON_ACTION_ANALOG_FORWARD = 113,
364
365 /// @brief <b>`114`</b>: Analog rewind.
366 ADDON_ACTION_ANALOG_REWIND = 114,
367
368 /// @brief <b>`115`</b>: move item up in playlist
369 ADDON_ACTION_MOVE_ITEM_UP = 115,
370
371 /// @brief <b>`116`</b>: move item down in playlist
372 ADDON_ACTION_MOVE_ITEM_DOWN = 116,
373
374 /// @brief <b>`117`</b>: pops up the context menu
375 ADDON_ACTION_CONTEXT_MENU = 117,
376
377 /// @brief <b>`118`</b>: stuff for virtual keyboard shortcuts
378 ADDON_ACTION_SHIFT = 118,
379
380 /// @brief <b>`119`</b>: stuff for virtual keyboard shortcuts
381 ADDON_ACTION_SYMBOLS = 119,
382
383 /// @brief <b>`120`</b>: stuff for virtual keyboard shortcuts
384 ADDON_ACTION_CURSOR_LEFT = 120,
385
386 /// @brief <b>`121`</b>: stuff for virtual keyboard shortcuts
387 ADDON_ACTION_CURSOR_RIGHT = 121,
388
389 /// @brief <b>`122`</b>: Build in function
390 ADDON_ACTION_BUILT_IN_FUNCTION = 122,
391
392 /// @brief <b>`114`</b>: Displays current time, can be used in videoFullScreen.xml window id=2005
393 ADDON_ACTION_SHOW_OSD_TIME = 123,
394
395 /// @brief <b>`124`</b>: Seeks forward, and displays the seek bar.
396 ADDON_ACTION_ANALOG_SEEK_FORWARD = 124,
397
398 /// @brief <b>`125`</b>: Seeks backward, and displays the seek bar.
399 ADDON_ACTION_ANALOG_SEEK_BACK = 125,
400
401 /// @brief <b>`126`</b>: Visualization preset show.
402 ADDON_ACTION_VIS_PRESET_SHOW = 126,
403
404 /// @brief <b>`128`</b>: Visualization preset next.
405 ADDON_ACTION_VIS_PRESET_NEXT = 128,
406
407 /// @brief <b>`129`</b>: Visualization preset previous.
408 ADDON_ACTION_VIS_PRESET_PREV = 129,
409
410 /// @brief <b>`130`</b>: Visualization preset lock.
411 ADDON_ACTION_VIS_PRESET_LOCK = 130,
412
413 /// @brief <b>`131`</b>: Visualization preset random.
414 ADDON_ACTION_VIS_PRESET_RANDOM = 131,
415
416 /// @brief <b>`132`</b>: Visualization preset plus.
417 ADDON_ACTION_VIS_RATE_PRESET_PLUS = 132,
418
419 /// @brief <b>`133`</b>: Visualization preset minus.
420 ADDON_ACTION_VIS_RATE_PRESET_MINUS = 133,
421
422 /// @brief <b>`134`</b>: Show Videomenu
423 ADDON_ACTION_SHOW_VIDEOMENU = 134,
424
425 /// @brief <b>`135`</b>: Enter.
426 ADDON_ACTION_ENTER = 135,
427
428 /// @brief <b>`136`</b>: Increase rating.
429 ADDON_ACTION_INCREASE_RATING = 136,
430
431 /// @brief <b>`137`</b>: Decrease rating.
432 ADDON_ACTION_DECREASE_RATING = 137,
433
434 /// @brief <b>`138`</b>: Switch to next scene/cutpoint in movie.
435 ADDON_ACTION_NEXT_SCENE = 138,
436
437 /// @brief <b>`139`</b>: Switch to previous scene/cutpoint in movie.
438 ADDON_ACTION_PREV_SCENE = 139,
439
440 /// @brief <b>`140`</b>: Jump through a list or container to next letter.
441 ADDON_ACTION_NEXT_LETTER = 140,
442
443 /// @brief <b>`141`</b>: Jump through a list or container to previous letter.
444 ADDON_ACTION_PREV_LETTER = 141,
445
446 /// @brief <b>`142`</b>: Jump direct to a particular letter using SMS-style input
447 ///
448 /// Jump to SMS2.
449 ADDON_ACTION_JUMP_SMS2 = 142,
450
451 /// @brief <b>`143`</b>: Jump to SMS3.
452 ADDON_ACTION_JUMP_SMS3 = 143,
453
454 /// @brief <b>`144`</b>: Jump to SMS4.
455 ADDON_ACTION_JUMP_SMS4 = 144,
456
457 /// @brief <b>`145`</b>: Jump to SMS5.
458 ADDON_ACTION_JUMP_SMS5 = 145,
459
460 /// @brief <b>`146`</b>: Jump to SMS6.
461 ADDON_ACTION_JUMP_SMS6 = 146,
462
463 /// @brief <b>`147`</b>: Jump to SMS7.
464 ADDON_ACTION_JUMP_SMS7 = 147,
465
466 /// @brief <b>`148`</b>: Jump to SMS8.
467 ADDON_ACTION_JUMP_SMS8 = 148,
468
469 /// @brief <b>`149`</b>: Jump to SMS9.
470 ADDON_ACTION_JUMP_SMS9 = 149,
471
472 /// @brief <b>`150`</b>: Filter clear.
473 ADDON_ACTION_FILTER_CLEAR = 150,
474
475 /// @brief <b>`151`</b>: Filter SMS2.
476 ADDON_ACTION_FILTER_SMS2 = 151,
477
478 /// @brief <b>`152`</b>: Filter SMS3.
479 ADDON_ACTION_FILTER_SMS3 = 152,
480
481 /// @brief <b>`153`</b>: Filter SMS4.
482 ADDON_ACTION_FILTER_SMS4 = 153,
483
484 /// @brief <b>`154`</b>: Filter SMS5.
485 ADDON_ACTION_FILTER_SMS5 = 154,
486
487 /// @brief <b>`155`</b>: Filter SMS6.
488 ADDON_ACTION_FILTER_SMS6 = 155,
489
490 /// @brief <b>`156`</b>: Filter SMS7.
491 ADDON_ACTION_FILTER_SMS7 = 156,
492
493 /// @brief <b>`157`</b>: Filter SMS8.
494 ADDON_ACTION_FILTER_SMS8 = 157,
495
496 /// @brief <b>`158`</b>: Filter SMS9.
497 ADDON_ACTION_FILTER_SMS9 = 158,
498
499 /// @brief <b>`159`</b>: First page.
500 ADDON_ACTION_FIRST_PAGE = 159,
501
502 /// @brief <b>`160`</b>: Last page.
503 ADDON_ACTION_LAST_PAGE = 160,
504
505 /// @brief <b>`161`</b>: Audio delay.
506 ADDON_ACTION_AUDIO_DELAY = 161,
507
508 /// @brief <b>`162`</b>: Subtitle delay.
509 ADDON_ACTION_SUBTITLE_DELAY = 162,
510
511 /// @brief <b>`163`</b>: Menu.
512 ADDON_ACTION_MENU = 163,
513
514 /// @brief <b>`164`</b>: Set rating.
515 ADDON_ACTION_SET_RATING = 164,
516
517 /// @brief <b>`170`</b>: Record.
518 ADDON_ACTION_RECORD = 170,
519
520 /// @brief <b>`180`</b>: Paste.
521 ADDON_ACTION_PASTE = 180,
522
523 /// @brief <b>`181`</b>: Next control.
524 ADDON_ACTION_NEXT_CONTROL = 181,
525
526 /// @brief <b>`182`</b>: Previous control.
527 ADDON_ACTION_PREV_CONTROL = 182,
528
529 /// @brief <b>`183`</b>: Channel switch.
530 ADDON_ACTION_CHANNEL_SWITCH = 183,
531
532 /// @brief <b>`184`</b>: Channel up.
533 ADDON_ACTION_CHANNEL_UP = 184,
534
535 /// @brief <b>`185`</b>: Channel down.
536 ADDON_ACTION_CHANNEL_DOWN = 185,
537
538 /// @brief <b>`186`</b>: Next channel group.
539 ADDON_ACTION_NEXT_CHANNELGROUP = 186,
540
541 /// @brief <b>`187`</b>: Previous channel group.
542 ADDON_ACTION_PREVIOUS_CHANNELGROUP = 187,
543
544 /// @brief <b>`188`</b>: PVR play.
545 ADDON_ACTION_PVR_PLAY = 188,
546
547 /// @brief <b>`189`</b>: PVR play TV.
548 ADDON_ACTION_PVR_PLAY_TV = 189,
549
550 /// @brief <b>`190`</b>: PVR play radio.
551 ADDON_ACTION_PVR_PLAY_RADIO = 190,
552
553 /// @brief <b>`191`</b>: PVR show timer rule.
554 ADDON_ACTION_PVR_SHOW_TIMER_RULE = 191,
555
556 /// @brief <b>`192`</b>: Channel number sep
557 ADDON_ACTION_CHANNEL_NUMBER_SEP = 192,
558
559 /// @brief <b>`193`</b>: PVR announce reminders
560 ADDON_ACTION_PVR_ANNOUNCE_REMINDERS = 193,
561
562 /// @brief <b>`199`</b>: Switch 2 desktop resolution
563 ADDON_ACTION_TOGGLE_FULLSCREEN = 199,
564
565 /// @brief <b>`200`</b>: Toggle watched status (videos)
566 ADDON_ACTION_TOGGLE_WATCHED = 200,
567
568 /// @brief <b>`201`</b>: Scan item
569 ADDON_ACTION_SCAN_ITEM = 201,
570
571 /// @brief <b>`202`</b>: Switch digital <-> analog
572 ADDON_ACTION_TOGGLE_DIGITAL_ANALOG = 202,
573
574 /// @brief <b>`203`</b>: Reloads CButtonTranslator's keymaps
575 ADDON_ACTION_RELOAD_KEYMAPS = 203,
576
577 /// @brief <b>`204`</b>: Start the GUIControlProfiler running
578 ADDON_ACTION_GUIPROFILE_BEGIN = 204,
579
580 /// @brief <b>`215`</b>: Teletext Color button <b>Red</b> to control TopText
581 ADDON_ACTION_TELETEXT_RED = 215,
582
583 /// @brief <b>`216`</b>: Teletext Color button <b>Green</b> to control TopText
584 ADDON_ACTION_TELETEXT_GREEN = 216,
585
586 /// @brief <b>`217`</b>: Teletext Color button <b>Yellow</b> to control TopText
587 ADDON_ACTION_TELETEXT_YELLOW = 217,
588
589 /// @brief <b>`218`</b>: Teletext Color button <b>Blue</b> to control TopText
590 ADDON_ACTION_TELETEXT_BLUE = 218,
591
592 /// @brief <b>`219`</b>: Increase par.
593 ADDON_ACTION_INCREASE_PAR = 219,
594
595 /// @brief <b>`220`</b>: Decrease par.
596 ADDON_ACTION_DECREASE_PAR = 220,
597
598 /// @brief <b>`227`</b>: Shift up video image in VideoPlayer
599 ADDON_ACTION_VSHIFT_UP = 227,
600
601 /// @brief <b>`228`</b>: Shift down video image in VideoPlayer
602 ADDON_ACTION_VSHIFT_DOWN = 228,
603
604 /// @brief <b>`229`</b>: Play/pause. If playing it pauses, if paused it plays.
605 ADDON_ACTION_PLAYER_PLAYPAUSE = 229,
606
607 /// @brief <b>`230`</b>: Shift up subtitles in VideoPlayer
608 ADDON_ACTION_SUBTITLE_VSHIFT_UP = 230,
609
610 /// @brief <b>`231`</b>: Shift down subtitles in VideoPlayer
611 ADDON_ACTION_SUBTITLE_VSHIFT_DOWN = 231,
612
613 /// @brief <b>`232`</b>: Toggle vertical alignment of subtitles
614 ADDON_ACTION_SUBTITLE_ALIGN = 232,
615
616 /// @brief <b>`233`</b>: Filter.
617 ADDON_ACTION_FILTER = 233,
618
619 /// @brief <b>`234`</b>: Switch player.
620 ADDON_ACTION_SWITCH_PLAYER = 234,
621
622 /// @brief <b>`235`</b>: Stereo mode next.
623 ADDON_ACTION_STEREOMODE_NEXT = 235,
624
625 /// @brief <b>`236`</b>: Stereo mode previous.
626 ADDON_ACTION_STEREOMODE_PREVIOUS = 236,
627
628 /// @brief <b>`237`</b>: Turns 3d mode on/off.
629 ADDON_ACTION_STEREOMODE_TOGGLE = 237,
630
631 /// @brief <b>`238`</b>: Stereo mode select.
632 ADDON_ACTION_STEREOMODE_SELECT = 238,
633
634 /// @brief <b>`239`</b>: Stereo mode to mono.
635 ADDON_ACTION_STEREOMODE_TOMONO = 239,
636
637 /// @brief <b>`240`</b>: Stereo mode set.
638 ADDON_ACTION_STEREOMODE_SET = 240,
639
640 /// @brief <b>`241`</b>: Settings reset.
641 ADDON_ACTION_SETTINGS_RESET = 241,
642
643 /// @brief <b>`242`</b>: Settings level change.
644 ADDON_ACTION_SETTINGS_LEVEL_CHANGE = 242,
645
646 /// @brief <b>`243`</b>: Show autoclosing OSD. Can b used in videoFullScreen.xml window id=2005
647 ADDON_ACTION_TRIGGER_OSD = 243,
648
649 /// @brief <b>`244`</b>: Input text.
650 ADDON_ACTION_INPUT_TEXT = 244,
651
652 /// @brief <b>`245`</b>: Volume set.
653 ADDON_ACTION_VOLUME_SET = 245,
654
655 /// @brief <b>`246`</b>: Toggle commercial skip.
656 ADDON_ACTION_TOGGLE_COMMSKIP = 246,
657
658 /// @brief <b>`247`</b>: Browse for subtitle. Can be used in videofullscreen
659 ADDON_ACTION_BROWSE_SUBTITLE = 247,
660
661 /// @brief <b>`248`</b>: Send a reset command to the active game
662 ADDON_ACTION_PLAYER_RESET = 248,
663
664 /// @brief <b>`249`</b>: Toggle font. Used in TextViewer dialog
665 ADDON_ACTION_TOGGLE_FONT = 249,
666
667 /// @brief <b>`250`</b>: Cycle video streams. Used in videofullscreen.
668 ADDON_ACTION_VIDEO_NEXT_STREAM = 250,
669
670 /// @brief <b>`251`</b>: Used to queue an item to the next position in the playlist
671 ADDON_ACTION_QUEUE_ITEM_NEXT = 251,
672
673 /// @brief <b>`247`</b>: Toggle display HDR on/off
674 ADDON_ACTION_HDR_TOGGLE = 260,
675
676 /// @brief <b>`300`</b>: Voice actions
677 ADDON_ACTION_VOICE_RECOGNIZE = 300,
678
679 // Number 347 used om front by ADDON_ACTION_BROWSE_SUBTITLE
680
681 /// @brief <b>`401`</b>: Touch actions
682 ADDON_ACTION_TOUCH_TAP = 401,
683
684 /// @brief <b>`410`</b>: Touch actions
685 ADDON_ACTION_TOUCH_TAP_TEN = 410,
686
687 /// @brief <b>`411`</b>: Touch actions
688 ADDON_ACTION_TOUCH_LONGPRESS = 411,
689
690 /// @brief <b>`412`</b>: Touch actions
691 ADDON_ACTION_TOUCH_LONGPRESS_TEN = 420,
692
693 /// @brief <b>`500`</b>: Gesture notify.
694 ADDON_ACTION_GESTURE_NOTIFY = 500,
695
696 /// @brief <b>`501`</b>: Gesture begin.
697 ADDON_ACTION_GESTURE_BEGIN = 501,
698
699 /// @brief <b>`502`</b>: Send action with point and currentPinchScale (fingers together < 1.0 -> fingers apart > 1.0)
700 ADDON_ACTION_GESTURE_ZOOM = 502,
701
702 /// @brief <b>`503`</b>: Gesture rotate.
703 ADDON_ACTION_GESTURE_ROTATE = 503,
704
705 /// @brief <b>`504`</b>: Gesture pan.
706 ADDON_ACTION_GESTURE_PAN = 504,
707
708 /// @brief <b>`505`</b>: Gesture was interrupted in unspecified state
709 ADDON_ACTION_GESTURE_ABORT = 505,
710
711 /// @brief <b>`511`</b>: Gesture swipe left.
712 ADDON_ACTION_GESTURE_SWIPE_LEFT = 511,
713
714 /// @brief <b>`520`</b>: Gesture swipe left ten
715 ADDON_ACTION_GESTURE_SWIPE_LEFT_TEN = 520,
716
717 /// @brief <b>`521`</b>: Gesture swipe right
718 ADDON_ACTION_GESTURE_SWIPE_RIGHT = 521,
719
720 /// @brief <b>`530`</b>: Gesture swipe right ten
721 ADDON_ACTION_GESTURE_SWIPE_RIGHT_TEN = 530,
722
723 /// @brief <b>`531`</b>: Gesture swipe up
724 ADDON_ACTION_GESTURE_SWIPE_UP = 531,
725
726 /// @brief <b>`540`</b>: Gesture swipe up ten
727 ADDON_ACTION_GESTURE_SWIPE_UP_TEN = 540,
728
729 /// @brief <b>`541`</b>: Gesture swipe down.
730 ADDON_ACTION_GESTURE_SWIPE_DOWN = 541,
731
732 /// @brief <b>`550`</b>: Gesture swipe down ten.
733 ADDON_ACTION_GESTURE_SWIPE_DOWN_TEN = 550,
734
735 /// @brief <b>`599`</b>: 5xx is reserved for additional gesture actions
736 ADDON_ACTION_GESTURE_END = 599,
737
738 // other, non-gesture actions
739
740 /// @brief <b>`601`</b>: Analog thumbstick move, horizontal axis, left; see ADDON_ACTION_ANALOG_MOVE
741 ADDON_ACTION_ANALOG_MOVE_X_LEFT = 601,
742
743 /// @brief <b>`602`</b>: Analog thumbstick move, horizontal axis, right; see ADDON_ACTION_ANALOG_MOVE
744 ADDON_ACTION_ANALOG_MOVE_X_RIGHT = 602,
745
746 /// @brief <b>`603`</b>: Analog thumbstick move, vertical axis, up; see ADDON_ACTION_ANALOG_MOVE
747 ADDON_ACTION_ANALOG_MOVE_Y_UP = 603,
748
749 /// @brief <b>`604`</b>: Analog thumbstick move, vertical axis, down; see ADDON_ACTION_ANALOG_MOVE
750 ADDON_ACTION_ANALOG_MOVE_Y_DOWN = 604,
751
752 /// @brief <b>`998`</b>: ERROR action is used to play an error sound.
753 ADDON_ACTION_ERROR = 998,
754
755 /// @brief <b>`999`</b>: The NOOP action can be specified to disable an input event. This is
756 /// useful in user keyboard.xml etc to disable actions specified in the
757 /// system mappings.
758 ADDON_ACTION_NOOP = 999
759 ///@}
760};
761///@}
762
763#endif /* !C_API_GUI_ACTION_IDS_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/list_item.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/list_item.h
new file mode 100644
index 0000000..f0c4dc7
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/list_item.h
@@ -0,0 +1,54 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_LIST_ITEM_H
12#define C_API_GUI_LIST_ITEM_H
13
14#include "definitions.h"
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif /* __cplusplus */
20
21 typedef struct AddonToKodiFuncTable_kodi_gui_listItem
22 {
23 KODI_GUI_LISTITEM_HANDLE(*create)
24 (KODI_HANDLE kodiBase,
25 const char* label,
26 const char* label2,
27 const char* path);
28 void (*destroy)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
29
30 char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
31 void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
32 char* (*get_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
33 void (*set_label2)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* label);
34 char* (*get_art)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* type);
35 void (*set_art)(KODI_HANDLE kodiBase,
36 KODI_GUI_LISTITEM_HANDLE handle,
37 const char* type,
38 const char* image);
39 char* (*get_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
40 void (*set_path)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* path);
41 char* (*get_property)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, const char* key);
42 void (*set_property)(KODI_HANDLE kodiBase,
43 KODI_GUI_LISTITEM_HANDLE handle,
44 const char* key,
45 const char* value);
46 void (*select)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle, bool select);
47 bool (*is_selected)(KODI_HANDLE kodiBase, KODI_GUI_LISTITEM_HANDLE handle);
48 } AddonToKodiFuncTable_kodi_gui_listItem;
49
50#ifdef __cplusplus
51} /* extern "C" */
52#endif /* __cplusplus */
53
54#endif /* !C_API_GUI_LIST_ITEM_H */
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/window.h b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/window.h
new file mode 100644
index 0000000..0f844f5
--- /dev/null
+++ b/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/window.h
@@ -0,0 +1,183 @@
1/*
2 * Copyright (C) 2005-2020 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#ifndef C_API_GUI_WINDOW_H
12#define C_API_GUI_WINDOW_H
13
14#include "definitions.h"
15#include "input/action_ids.h"
16
17#include <stddef.h>
18
19#define ADDON_MAX_CONTEXT_ENTRIES 20
20#define ADDON_MAX_CONTEXT_ENTRY_NAME_LENGTH 80
21
22#ifdef __cplusplus
23extern "C"
24{
25#endif /* __cplusplus */
26
27 typedef struct gui_context_menu_pair
28 {
29 unsigned int id;
30 char name[ADDON_MAX_CONTEXT_ENTRY_NAME_LENGTH];
31 } gui_context_menu_pair;
32
33 typedef struct AddonToKodiFuncTable_kodi_gui_window
34 {
35 /* Window creation functions */
36 KODI_GUI_WINDOW_HANDLE(*create)
37 (KODI_HANDLE kodiBase,
38 const char* xml_filename,
39 const char* default_skin,
40 bool as_dialog,
41 bool is_media);
42 void (*destroy)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
43
44 void (*set_callbacks)(KODI_HANDLE kodiBase,
45 KODI_GUI_WINDOW_HANDLE handle,
46 KODI_GUI_CLIENT_HANDLE clienthandle,
47 bool (*CBInit)(KODI_GUI_CLIENT_HANDLE),
48 bool (*CBFocus)(KODI_GUI_CLIENT_HANDLE, int),
49 bool (*CBClick)(KODI_GUI_CLIENT_HANDLE, int),
50 bool (*CBOnAction)(KODI_GUI_CLIENT_HANDLE, enum ADDON_ACTION),
51 void (*CBGetContextButtons)(
52 KODI_GUI_CLIENT_HANDLE, int, gui_context_menu_pair*, unsigned int*),
53 bool (*CBOnContextButton)(KODI_GUI_CLIENT_HANDLE, int, unsigned int));
54 bool (*show)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
55 bool (*close)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
56 bool (*do_modal)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
57
58 /* Window control functions */
59 bool (*set_focus_id)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
60 int (*get_focus_id)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
61 void (*set_control_label)(KODI_HANDLE kodiBase,
62 KODI_GUI_WINDOW_HANDLE handle,
63 int control_id,
64 const char* label);
65 void (*set_control_visible)(KODI_HANDLE kodiBase,
66 KODI_GUI_WINDOW_HANDLE handle,
67 int control_id,
68 bool visible);
69 void (*set_control_selected)(KODI_HANDLE kodiBase,
70 KODI_GUI_WINDOW_HANDLE handle,
71 int control_id,
72 bool selected);
73
74 /* Window property functions */
75 void (*set_property)(KODI_HANDLE kodiBase,
76 KODI_GUI_WINDOW_HANDLE handle,
77 const char* key,
78 const char* value);
79 void (*set_property_int)(KODI_HANDLE kodiBase,
80 KODI_GUI_WINDOW_HANDLE handle,
81 const char* key,
82 int value);
83 void (*set_property_bool)(KODI_HANDLE kodiBase,
84 KODI_GUI_WINDOW_HANDLE handle,
85 const char* key,
86 bool value);
87 void (*set_property_double)(KODI_HANDLE kodiBase,
88 KODI_GUI_WINDOW_HANDLE handle,
89 const char* key,
90 double value);
91 char* (*get_property)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, const char* key);
92 int (*get_property_int)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, const char* key);
93 bool (*get_property_bool)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, const char* key);
94 double (*get_property_double)(KODI_HANDLE kodiBase,
95 KODI_GUI_WINDOW_HANDLE handle,
96 const char* key);
97 void (*clear_properties)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
98 void (*clear_property)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, const char* key);
99
100 /* List item functions */
101 void (*clear_item_list)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
102 void (*add_list_item)(KODI_HANDLE kodiBase,
103 KODI_GUI_WINDOW_HANDLE handle,
104 KODI_GUI_LISTITEM_HANDLE item,
105 int list_position);
106 void (*remove_list_item_from_position)(KODI_HANDLE kodiBase,
107 KODI_GUI_WINDOW_HANDLE handle,
108 int list_position);
109 void (*remove_list_item)(KODI_HANDLE kodiBase,
110 KODI_GUI_WINDOW_HANDLE handle,
111 KODI_GUI_LISTITEM_HANDLE item);
112 KODI_GUI_LISTITEM_HANDLE(*get_list_item)
113 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int list_position);
114 void (*set_current_list_position)(KODI_HANDLE kodiBase,
115 KODI_GUI_WINDOW_HANDLE handle,
116 int list_position);
117 int (*get_current_list_position)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
118 int (*get_list_size)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
119 void (*set_container_property)(KODI_HANDLE kodiBase,
120 KODI_GUI_WINDOW_HANDLE handle,
121 const char* key,
122 const char* value);
123 void (*set_container_content)(KODI_HANDLE kodiBase,
124 KODI_GUI_WINDOW_HANDLE handle,
125 const char* value);
126 int (*get_current_container_id)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
127
128 /* Various functions */
129 void (*mark_dirty_region)(KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle);
130
131 /* GUI control access functions */
132 KODI_GUI_CONTROL_HANDLE(*get_control_button)
133 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
134 KODI_GUI_CONTROL_HANDLE(*get_control_edit)
135 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
136 KODI_GUI_CONTROL_HANDLE(*get_control_fade_label)
137 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
138 KODI_GUI_CONTROL_HANDLE(*get_control_image)
139 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
140 KODI_GUI_CONTROL_HANDLE(*get_control_label)
141 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
142 KODI_GUI_CONTROL_HANDLE(*get_control_progress)
143 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
144 KODI_GUI_CONTROL_HANDLE(*get_control_radio_button)
145 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
146 KODI_GUI_CONTROL_HANDLE(*get_control_render_addon)
147 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
148 KODI_GUI_CONTROL_HANDLE(*get_control_settings_slider)
149 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
150 KODI_GUI_CONTROL_HANDLE(*get_control_slider)
151 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
152 KODI_GUI_CONTROL_HANDLE(*get_control_spin)
153 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
154 KODI_GUI_CONTROL_HANDLE(*get_control_text_box)
155 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
156 KODI_GUI_CONTROL_HANDLE(*get_control_dummy1)
157 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
158 KODI_GUI_CONTROL_HANDLE(*get_control_dummy2)
159 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
160 KODI_GUI_CONTROL_HANDLE(*get_control_dummy3)
161 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
162 KODI_GUI_CONTROL_HANDLE(*get_control_dummy4)
163 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
164 KODI_GUI_CONTROL_HANDLE(*get_control_dummy5)
165 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
166 KODI_GUI_CONTROL_HANDLE(*get_control_dummy6)
167 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
168 KODI_GUI_CONTROL_HANDLE(*get_control_dummy7)
169 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
170 KODI_GUI_CONTROL_HANDLE(*get_control_dummy8)
171 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
172 KODI_GUI_CONTROL_HANDLE(*get_control_dummy9)
173 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
174 KODI_GUI_CONTROL_HANDLE(*get_control_dummy10)
175 (KODI_HANDLE kodiBase, KODI_GUI_WINDOW_HANDLE handle, int control_id);
176 /* This above used to add new get_control_* functions */
177 } AddonToKodiFuncTable_kodi_gui_window;
178
179#ifdef __cplusplus
180} /* extern "C" */
181#endif /* __cplusplus */
182
183#endif /* !C_API_GUI_WINDOW_H */