11#include "../../AddonBase.h"
12#include "../../c-api/gui/dialogs/numeric.h"
52 using namespace ::kodi::addon;
55 CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_verify_new_password(
56 CPrivateBase::m_interface->toKodi->kodiBase, &pw);
60 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase, pw);
126 const std::string& heading,
129 using namespace ::kodi::addon;
130 return CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_verify_password(
131 CPrivateBase::m_interface->toKodi->kodiBase, password.c_str(), heading.c_str(), retries);
147 const std::string& heading,
150 using namespace ::kodi::addon;
151 char* retString =
nullptr;
152 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_verify_input(
153 CPrivateBase::m_interface->toKodi->kodiBase, toVerify.c_str(), &retString, heading.c_str(),
155 if (retString !=
nullptr)
157 toVerify = retString;
158 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
197 using namespace ::kodi::addon;
198 return CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_get_time(
199 CPrivateBase::m_interface->toKodi->kodiBase, &time, heading.c_str());
235 using namespace ::kodi::addon;
236 return CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_get_date(
237 CPrivateBase::m_interface->toKodi->kodiBase, &date, heading.c_str());
253 using namespace ::kodi::addon;
254 char* retString =
nullptr;
255 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_get_ip_address(
256 CPrivateBase::m_interface->toKodi->kodiBase, ipAddress.c_str(), &retString, heading.c_str());
257 if (retString !=
nullptr)
259 ipAddress = retString;
260 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
297 const std::string& heading,
298 unsigned int autoCloseTimeoutMs = 0)
300 using namespace ::kodi::addon;
301 char* retString =
nullptr;
302 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_get_number(
303 CPrivateBase::m_interface->toKodi->kodiBase, input.c_str(), &retString, heading.c_str(),
305 if (retString !=
nullptr)
308 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
327 using namespace ::kodi::addon;
328 char* retString =
nullptr;
329 bool ret = CPrivateBase::m_interface->toKodi->kodi_gui->dialogNumeric->show_and_get_seconds(
330 CPrivateBase::m_interface->toKodi->kodiBase, time.c_str(), &retString, heading.c_str());
331 if (retString !=
nullptr)
334 CPrivateBase::m_interface->toKodi->free_string(CPrivateBase::m_interface->toKodi->kodiBase,
int ATTR_DLL_LOCAL ShowAndVerifyPassword(const std::string &password, const std::string &heading, int retries)
Use dialog to verify numeric password.
Definition Numeric.h:125
bool ATTR_DLL_LOCAL ShowAndGetNumber(std::string &input, const std::string &heading, unsigned int autoCloseTimeoutMs=0)
Use dialog to get normal number.
Definition Numeric.h:296
bool ATTR_DLL_LOCAL ShowAndGetSeconds(std::string &time, const std::string &heading)
Show numeric keypad to get seconds.
Definition Numeric.h:325
bool ATTR_DLL_LOCAL ShowAndVerifyNewPassword(std::string &newPassword)
Use dialog to get numeric new password.
Definition Numeric.h:50
bool ATTR_DLL_LOCAL ShowAndGetTime(tm &time, const std::string &heading)
Use dialog to get time value.
Definition Numeric.h:195
bool ATTR_DLL_LOCAL ShowAndVerifyInput(std::string &toVerify, const std::string &heading, bool verifyInput)
Use dialog to verify numeric password.
Definition Numeric.h:146
bool ATTR_DLL_LOCAL ShowAndGetIPAddress(std::string &ipAddress, const std::string &heading)
Use dialog to get a IP.
Definition Numeric.h:251
bool ATTR_DLL_LOCAL ShowAndGetDate(tm &date, const std::string &heading)
Use dialog to get date value.
Definition Numeric.h:233