summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
committermanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
commitbe933ef2241d79558f91796cc5b3a161f72ebf9c (patch)
treefe3ab2f130e20c99001f2d7a81d610c78c96a3f4 /xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h
parent5f8335c1e49ce108ef3481863833c98efa00411b (diff)
downloadkodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.gz
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.bz2
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.zip
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h')
-rw-r--r--xbmc/addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h45
1 files changed, 45 insertions, 0 deletions
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 */