Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
progress.h
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#ifndef C_API_GUI_DIALOGS_PROGRESS_H
10#define C_API_GUI_DIALOGS_PROGRESS_H
11
12#include "../definitions.h"
13
14#ifdef __cplusplus
15extern "C"
16{
17#endif /* __cplusplus */
18
20 {
21 KODI_GUI_HANDLE (*new_dialog)(KODI_HANDLE kodiBase);
22 void (*delete_dialog)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
23 void (*open)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
24 void (*set_heading)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* heading);
25 void (*set_line)(KODI_HANDLE kodiBase,
26 KODI_GUI_HANDLE handle,
27 unsigned int lineNo,
28 const char* line);
29 void (*set_can_cancel)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool canCancel);
30 bool (*is_canceled)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
31 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int percentage);
32 int (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
33 void (*show_progress_bar)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool pnOff);
34 void (*set_progress_max)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int max);
35 void (*set_progress_advance)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int nSteps);
36 bool (*abort)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
38
39#ifdef __cplusplus
40} /* extern "C" */
41#endif /* __cplusplus */
42
43#endif /* !C_API_GUI_DIALOGS_PROGRESS_H */