kodi
Progress.h
1 /*
2  * Copyright (C) 2005-2018 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 #include "addons/kodi-dev-kit/include/kodi/c-api/gui/dialogs/progress.h"
12 
13 extern "C"
14 {
15 
16  struct AddonGlobalInterface;
17 
18  namespace ADDON
19  {
20 
30  {
31  static void Init(AddonGlobalInterface* addonInterface);
32  static void DeInit(AddonGlobalInterface* addonInterface);
33 
45  static KODI_GUI_HANDLE new_dialog(KODI_HANDLE kodiBase);
46  static void delete_dialog(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
47  static void open(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
48  static void set_heading(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, const char* heading);
49  static void set_line(KODI_HANDLE kodiBase,
50  KODI_GUI_HANDLE handle,
51  unsigned int line,
52  const char* text);
53  static void set_can_cancel(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool canCancel);
54  static bool is_canceled(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
55  static void set_percentage(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int percentage);
56  static int get_percentage(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
57  static void show_progress_bar(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, bool bOnOff);
58  static void set_progress_max(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int max);
59  static void set_progress_advance(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle, int nSteps);
60  static bool abort(KODI_HANDLE kodiBase, KODI_GUI_HANDLE handle);
62  };
63 
64  } /* namespace ADDON */
65 } /* extern "C" */
static KODI_GUI_HANDLE new_dialog(KODI_HANDLE kodiBase)
callback functions from add-on to kodi
Definition: Progress.cpp:48
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Definition: Addon.cpp:39
Global gui Add-on to Kodi callback functions.
Definition: Progress.h:29