11#include "../../AddonBase.h"
12#include "../../c-api/gui/dialogs/yes_no.h"
75 const std::string& text,
77 const std::string& noLabel =
"",
78 const std::string& yesLabel =
"")
80 using namespace ::kodi::addon;
81 return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_single_text(
82 CAddonBase::m_interface->toKodi->kodiBase, heading.c_str(), text.c_str(), &canceled,
83 noLabel.c_str(), yesLabel.c_str());
118 const std::string& line0,
119 const std::string& line1,
120 const std::string& line2,
121 const std::string& noLabel =
"",
122 const std::string& yesLabel =
"")
124 using namespace ::kodi::addon;
125 return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_line_text(
126 CAddonBase::m_interface->toKodi->kodiBase, heading.c_str(), line0.c_str(), line1.c_str(),
127 line2.c_str(), noLabel.c_str(), yesLabel.c_str());
167 const std::string& line0,
168 const std::string& line1,
169 const std::string& line2,
171 const std::string& noLabel =
"",
172 const std::string& yesLabel =
"")
174 using namespace ::kodi::addon;
175 return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo
176 ->show_and_get_input_line_button_text(
177 CAddonBase::m_interface->toKodi->kodiBase, heading.c_str(), line0.c_str(), line1.c_str(),
178 line2.c_str(), &canceled, noLabel.c_str(), yesLabel.c_str());
bool ATTRIBUTE_HIDDEN ShowAndGetInput(const std::string &heading, const std::string &line0, const std::string &line1, const std::string &line2, bool &canceled, const std::string &noLabel="", const std::string &yesLabel="")
Use dialog to get numeric new password with separated line strings and cancel return field.
Definition: YesNo.h:166