Kodi Development  19.0
for Binary and Script based Add-Ons
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 #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 
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);
40 
41 #ifdef __cplusplus
42 } /* extern "C" */
43 #endif /* __cplusplus */
44 
45 #endif /* !C_API_GUI_DIALOGS_PROGRESS_H */
AddonToKodiFuncTable_kodi_gui_dialogProgress
Definition: progress.h:22