11#include "../../AddonBase.h"
12#include "../../c-api/gui/dialogs/keyboard.h"
75 const std::string& heading,
76 bool allowEmptyResult,
77 bool hiddenInput =
false,
78 unsigned int autoCloseMs = 0)
80 using namespace ::kodi::addon;
81 char* retString =
nullptr;
83 CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_input_with_head(
84 CPrivateBase::m_interface->toKodi->kodiBase, text.c_str(), &retString, heading.c_str(),
85 allowEmptyResult, hiddenInput, autoCloseMs);
86 if (retString !=
nullptr)
89 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
111 bool allowEmptyResult,
112 unsigned int autoCloseMs = 0)
114 using namespace ::kodi::addon;
115 char* retString =
nullptr;
116 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_input(
117 CPrivateBase::m_interface->toKodi->kodiBase, text.c_str(), &retString, allowEmptyResult,
119 if (retString !=
nullptr)
122 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
144 const std::string& heading,
145 bool allowEmptyResult,
146 unsigned int autoCloseMs = 0)
148 using namespace ::kodi::addon;
149 char* retString =
nullptr;
150 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard
151 ->show_and_get_new_password_with_head(
152 CPrivateBase::m_interface->toKodi->kodiBase, newPassword.c_str(), &retString,
153 heading.c_str(), allowEmptyResult, autoCloseMs);
154 if (retString !=
nullptr)
156 newPassword = retString;
157 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
177 unsigned int autoCloseMs = 0)
179 using namespace ::kodi::addon;
180 char* retString =
nullptr;
181 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_new_password(
182 CPrivateBase::m_interface->toKodi->kodiBase, newPassword.c_str(), &retString, autoCloseMs);
183 if (retString !=
nullptr)
185 newPassword = retString;
186 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
250 const std::string& heading,
251 bool allowEmptyResult,
252 unsigned int autoCloseMs = 0)
254 using namespace ::kodi::addon;
255 char* retString =
nullptr;
256 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard
257 ->show_and_verify_new_password_with_head(
258 CPrivateBase::m_interface->toKodi->kodiBase, &retString, heading.c_str(),
259 allowEmptyResult, autoCloseMs);
260 if (retString !=
nullptr)
262 newPassword = retString;
263 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
283 unsigned int autoCloseMs = 0)
285 using namespace ::kodi::addon;
286 char* retString =
nullptr;
288 CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_verify_new_password(
289 CPrivateBase::m_interface->toKodi->kodiBase, &retString, autoCloseMs);
290 if (retString !=
nullptr)
292 newPassword = retString;
293 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
315 const std::string& heading,
317 unsigned int autoCloseMs = 0)
319 using namespace ::kodi::addon;
320 char* retString =
nullptr;
321 int ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_verify_password(
322 CPrivateBase::m_interface->toKodi->kodiBase, password.c_str(), &retString, heading.c_str(),
323 retries, autoCloseMs);
324 if (retString !=
nullptr)
326 password = retString;
327 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
351 unsigned int autoCloseMs = 0)
353 using namespace ::kodi::addon;
354 char* retString =
nullptr;
355 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_filter(
356 CPrivateBase::m_interface->toKodi->kodiBase, text.c_str(), &retString, searching,
358 if (retString !=
nullptr)
361 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
378 bool closeKeyboard =
false)
380 using namespace ::kodi::addon;
381 return CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->send_text_to_active_keyboard(
382 CPrivateBase::m_interface->toKodi->kodiBase, text.c_str(), closeKeyboard);
394 using namespace ::kodi::addon;
395 return CPrivateBase::m_interface->toKodi->kodi_gui->dialogKeyboard->is_keyboard_activated(
396 CPrivateBase::m_interface->toKodi->kodiBase);
bool ATTR_DLL_LOCAL ShowAndVerifyNewPassword(std::string &newPassword, const std::string &heading, bool allowEmptyResult, unsigned int autoCloseMs=0)
Show keyboard twice to get and confirm a user-entered password string.
Definition Keyboard.h:249
bool ATTR_DLL_LOCAL ShowAndGetNewPassword(std::string &newPassword, const std::string &heading, bool allowEmptyResult, unsigned int autoCloseMs=0)
Shows keyboard and prompts for a password. Differs from ShowAndVerifyNewPassword() in that no second ...
Definition Keyboard.h:143
bool ATTR_DLL_LOCAL ShowAndGetInput(std::string &text, const std::string &heading, bool allowEmptyResult, bool hiddenInput=false, unsigned int autoCloseMs=0)
Show keyboard with initial value text and replace with result string.
Definition Keyboard.h:74
int ATTR_DLL_LOCAL ShowAndVerifyPassword(std::string &password, const std::string &heading, int retries, unsigned int autoCloseMs=0)
Show keyboard and verify user input against password.
Definition Keyboard.h:314
bool ATTR_DLL_LOCAL IsKeyboardActivated()
Check for visible keyboard on GUI.
Definition Keyboard.h:392
bool ATTR_DLL_LOCAL SendTextToActiveKeyboard(const std::string &text, bool closeKeyboard=false)
Send a text to a visible keyboard.
Definition Keyboard.h:377
bool ATTR_DLL_LOCAL ShowAndGetFilter(std::string &text, bool searching, unsigned int autoCloseMs=0)
Shows a filter related keyboard.
Definition Keyboard.h:349