kodi
Numeric.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/numeric.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 bool show_and_verify_new_password(KODI_HANDLE kodiBase, char** password);
46  static int show_and_verify_password(KODI_HANDLE kodiBase,
47  const char* password,
48  const char* heading,
49  int retries);
50  static bool show_and_verify_input(KODI_HANDLE kodiBase,
51  const char* verify_in,
52  char** verify_out,
53  const char* heading,
54  bool verify_input);
55  static bool show_and_get_time(KODI_HANDLE kodiBase, tm* time, const char* heading);
56  static bool show_and_get_date(KODI_HANDLE kodiBase, tm* date, const char* heading);
57  static bool show_and_get_ip_address(KODI_HANDLE kodiBase,
58  const char* ip_address_in,
59  char** ip_address_out,
60  const char* heading);
61  static bool show_and_get_number(KODI_HANDLE kodiBase,
62  const char* number_in,
63  char** number_out,
64  const char* heading,
65  unsigned int auto_close_ms);
66  static bool show_and_get_seconds(KODI_HANDLE kodiBase,
67  const char* time_in,
68  char** time_out,
69  const char* heading);
71  };
72 
73  } /* namespace ADDON */
74 } /* extern "C" */
static bool show_and_verify_new_password(KODI_HANDLE kodiBase, char **password)
callback functions from add-on to kodi
Definition: Numeric.cpp:43
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Global gui Add-on to Kodi callback functions.
Definition: Numeric.h:29
Definition: Addon.cpp:39