diff options
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs')
11 files changed, 499 insertions, 0 deletions
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 @@ | |||
| 1 | set(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 | |||
| 12 | if(NOT ENABLE_STATIC_LIBS) | ||
| 13 | core_add_library(addons_kodi-dev-kit_include_kodi_c-api_gui_dialogs) | ||
| 14 | endif() | ||
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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 | ||
| 17 | extern "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 */ | ||
