Kodi Development  19.0
for Binary and Script based Add-Ons
extended_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_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 
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);
38 
39 #ifdef __cplusplus
40 } /* extern "C" */
41 #endif /* __cplusplus */
42 
43 #endif /* !C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H */
AddonToKodiFuncTable_kodi_gui_dialogExtendedProgress
Definition: extended_progress.h:22