diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h index c694bf5..67c2fc4 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/YesNo.h | |||
| @@ -73,14 +73,16 @@ namespace dialogs | |||
| 73 | /// canceled ? "canceled" : "not canceled"); | 73 | /// canceled ? "canceled" : "not canceled"); |
| 74 | /// ~~~~~~~~~~~~~ | 74 | /// ~~~~~~~~~~~~~ |
| 75 | /// | 75 | /// |
| 76 | inline bool ShowAndGetInput(const std::string& heading, const std::string& text, | 76 | inline bool ATTRIBUTE_HIDDEN ShowAndGetInput(const std::string& heading, |
| 77 | bool& canceled, const std::string& noLabel = "", | 77 | const std::string& text, |
| 78 | const std::string& yesLabel = "") | 78 | bool& canceled, |
| 79 | const std::string& noLabel = "", | ||
| 80 | const std::string& yesLabel = "") | ||
| 79 | { | 81 | { |
| 80 | using namespace ::kodi::addon; | 82 | using namespace ::kodi::addon; |
| 81 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_single_text(CAddonBase::m_interface->toKodi->kodiBase, | 83 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_single_text( |
| 82 | heading.c_str(), text.c_str(), &canceled, | 84 | CAddonBase::m_interface->toKodi->kodiBase, heading.c_str(), text.c_str(), &canceled, |
| 83 | noLabel.c_str(), yesLabel.c_str()); | 85 | noLabel.c_str(), yesLabel.c_str()); |
| 84 | } | 86 | } |
| 85 | //-------------------------------------------------------------------------- | 87 | //-------------------------------------------------------------------------- |
| 86 | 88 | ||
| @@ -115,9 +117,12 @@ namespace dialogs | |||
| 115 | /// ret ? "yes" : "no"); | 117 | /// ret ? "yes" : "no"); |
| 116 | /// ~~~~~~~~~~~~~ | 118 | /// ~~~~~~~~~~~~~ |
| 117 | /// | 119 | /// |
| 118 | inline bool ShowAndGetInput(const std::string& heading, const std::string& line0, const std::string& line1, | 120 | inline bool ATTRIBUTE_HIDDEN ShowAndGetInput(const std::string& heading, |
| 119 | const std::string& line2, const std::string& noLabel = "", | 121 | const std::string& line0, |
| 120 | const std::string& yesLabel = "") | 122 | const std::string& line1, |
| 123 | const std::string& line2, | ||
| 124 | const std::string& noLabel = "", | ||
| 125 | const std::string& yesLabel = "") | ||
| 121 | { | 126 | { |
| 122 | using namespace ::kodi::addon; | 127 | using namespace ::kodi::addon; |
| 123 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_line_text(CAddonBase::m_interface->toKodi->kodiBase, | 128 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_line_text(CAddonBase::m_interface->toKodi->kodiBase, |
| @@ -161,9 +166,13 @@ namespace dialogs | |||
| 161 | /// canceled ? "canceled" : "not canceled"); | 166 | /// canceled ? "canceled" : "not canceled"); |
| 162 | /// ~~~~~~~~~~~~~ | 167 | /// ~~~~~~~~~~~~~ |
| 163 | /// | 168 | /// |
| 164 | inline bool ShowAndGetInput(const std::string& heading, const std::string& line0, const std::string& line1, | 169 | inline bool ATTRIBUTE_HIDDEN ShowAndGetInput(const std::string& heading, |
| 165 | const std::string& line2, bool& canceled, const std::string& noLabel = "", | 170 | const std::string& line0, |
| 166 | const std::string& yesLabel = "") | 171 | const std::string& line1, |
| 172 | const std::string& line2, | ||
| 173 | bool& canceled, | ||
| 174 | const std::string& noLabel = "", | ||
| 175 | const std::string& yesLabel = "") | ||
| 167 | { | 176 | { |
| 168 | using namespace ::kodi::addon; | 177 | using namespace ::kodi::addon; |
| 169 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_line_button_text(CAddonBase::m_interface->toKodi->kodiBase, | 178 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogYesNo->show_and_get_input_line_button_text(CAddonBase::m_interface->toKodi->kodiBase, |
