summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h')
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/extended_progress.h43
1 files changed, 43 insertions, 0 deletions
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 */