Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
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#ifndef C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H
10#define C_API_GUI_DIALOGS_EXTENDED_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, const char* title);
22 void (*delete_dialog)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
23 char* (*get_title)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
24 void (*set_title)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* title);
25 char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
26 void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* text);
27 bool (*is_finished)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
28 void (*mark_finished)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
29 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
30 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, float percentage);
31 void (*set_progress)(KODI_HANDLE kodiBase,
32 KODI_GUI_HANDLE handle,
33 int currentItem,
34 int itemCount);
36
37#ifdef __cplusplus
38} /* extern "C" */
39#endif /* __cplusplus */
40
41#endif /* !C_API_GUI_DIALOGS_EXTENDED_PROGRESS_H */