kodi
Keyboard.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/keyboard.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_get_input_with_head(KODI_HANDLE kodiBase,
46  const char* text_in,
47  char** text_out,
48  const char* heading,
49  bool allow_empty_result,
50  bool hidden_input,
51  unsigned int auto_close_ms);
52  static bool show_and_get_input(KODI_HANDLE kodiBase,
53  const char* text_in,
54  char** text_out,
55  bool allow_empty_result,
56  unsigned int auto_close_ms);
57  static bool show_and_get_new_password_with_head(KODI_HANDLE kodiBase,
58  const char* password_in,
59  char** password_out,
60  const char* heading,
61  bool allow_empty_result,
62  unsigned int auto_close_ms);
63  static bool show_and_get_new_password(KODI_HANDLE kodiBase,
64  const char* password_in,
65  char** password_out,
66  unsigned int auto_close_ms);
67  static bool show_and_verify_new_password_with_head(KODI_HANDLE kodiBase,
68  char** password_out,
69  const char* heading,
70  bool allowEmpty,
71  unsigned int auto_close_ms);
72  static bool show_and_verify_new_password(KODI_HANDLE kodiBase,
73  char** password_out,
74  unsigned int auto_close_ms);
75  static int show_and_verify_password(KODI_HANDLE kodiBase,
76  const char* password_in,
77  char** password_out,
78  const char* heading,
79  int retries,
80  unsigned int auto_close_ms);
81  static bool show_and_get_filter(KODI_HANDLE kodiBase,
82  const char* text_in,
83  char** text_out,
84  bool searching,
85  unsigned int auto_close_ms);
86  static bool send_text_to_active_keyboard(KODI_HANDLE kodiBase,
87  const char* text,
88  bool close_keyboard);
89  static bool is_keyboard_activated(KODI_HANDLE kodiBase);
91  };
92 
93  } /* namespace ADDON */
94 } /* extern "C" */
static bool show_and_get_input_with_head(KODI_HANDLE kodiBase, const char *text_in, char **text_out, const char *heading, bool allow_empty_result, bool hidden_input, unsigned int auto_close_ms)
callback functions from add-on to kodi
Definition: Keyboard.cpp:49
Global gui Add-on to Kodi callback functions.
Definition: Keyboard.h:29
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Definition: Addon.cpp:39