diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h | 50 |
1 files changed, 36 insertions, 14 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h index 76284d8..843bdfa 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/Keyboard.h | |||
| @@ -76,17 +76,23 @@ namespace dialogs | |||
| 76 | /// text.c_str(), bRet ? "OK" : "Canceled"); | 76 | /// text.c_str(), bRet ? "OK" : "Canceled"); |
| 77 | /// ~~~~~~~~~~~~~ | 77 | /// ~~~~~~~~~~~~~ |
| 78 | /// | 78 | /// |
| 79 | inline bool ShowAndGetInput(std::string& text, const std::string& heading, bool allowEmptyResult, bool hiddenInput = false, unsigned int autoCloseMs = 0) | 79 | inline bool ATTRIBUTE_HIDDEN ShowAndGetInput(std::string& text, |
| 80 | const std::string& heading, | ||
| 81 | bool allowEmptyResult, | ||
| 82 | bool hiddenInput = false, | ||
| 83 | unsigned int autoCloseMs = 0) | ||
| 80 | { | 84 | { |
| 81 | using namespace ::kodi::addon; | 85 | using namespace ::kodi::addon; |
| 82 | char* retString = nullptr; | 86 | char* retString = nullptr; |
| 83 | bool ret = CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_input_with_head(CAddonBase::m_interface->toKodi->kodiBase, | 87 | bool ret = |
| 84 | text.c_str(), &retString, heading.c_str(), allowEmptyResult, | 88 | CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->show_and_get_input_with_head( |
| 85 | hiddenInput, autoCloseMs); | 89 | CAddonBase::m_interface->toKodi->kodiBase, text.c_str(), &retString, heading.c_str(), |
| 90 | allowEmptyResult, hiddenInput, autoCloseMs); | ||
| 86 | if (retString != nullptr) | 91 | if (retString != nullptr) |
| 87 | { | 92 | { |
| 88 | text = retString; | 93 | text = retString; |
| 89 | CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, retString); | 94 | CAddonBase::m_interface->toKodi->free_string(CAddonBase::m_interface->toKodi->kodiBase, |
| 95 | retString); | ||
| 90 | } | 96 | } |
| 91 | return ret; | 97 | return ret; |
| 92 | } | 98 | } |
| @@ -108,7 +114,9 @@ namespace dialogs | |||
| 108 | /// false if unsuccessful display, no user | 114 | /// false if unsuccessful display, no user |
| 109 | /// input, or canceled editing. | 115 | /// input, or canceled editing. |
| 110 | /// | 116 | /// |
| 111 | inline bool ShowAndGetInput(std::string& text, bool allowEmptyResult, unsigned int autoCloseMs = 0) | 117 | inline bool ATTRIBUTE_HIDDEN ShowAndGetInput(std::string& text, |
| 118 | bool allowEmptyResult, | ||
| 119 | unsigned int autoCloseMs = 0) | ||
| 112 | { | 120 | { |
| 113 | using namespace ::kodi::addon; | 121 | using namespace ::kodi::addon; |
| 114 | char* retString = nullptr; | 122 | char* retString = nullptr; |
| @@ -140,7 +148,10 @@ namespace dialogs | |||
| 140 | /// false if unsuccessful display, no user | 148 | /// false if unsuccessful display, no user |
| 141 | /// input, or canceled editing. | 149 | /// input, or canceled editing. |
| 142 | /// | 150 | /// |
| 143 | inline bool ShowAndGetNewPassword(std::string& newPassword, const std::string& heading, bool allowEmptyResult, unsigned int autoCloseMs = 0) | 151 | inline bool ATTRIBUTE_HIDDEN ShowAndGetNewPassword(std::string& newPassword, |
| 152 | const std::string& heading, | ||
| 153 | bool allowEmptyResult, | ||
| 154 | unsigned int autoCloseMs = 0) | ||
| 144 | { | 155 | { |
| 145 | using namespace ::kodi::addon; | 156 | using namespace ::kodi::addon; |
| 146 | char* retString = nullptr; | 157 | char* retString = nullptr; |
| @@ -170,7 +181,8 @@ namespace dialogs | |||
| 170 | /// false if unsuccessful display, no user | 181 | /// false if unsuccessful display, no user |
| 171 | /// input, or canceled editing. | 182 | /// input, or canceled editing. |
| 172 | /// | 183 | /// |
| 173 | inline bool ShowAndGetNewPassword(std::string& newPassword, unsigned int autoCloseMs = 0) | 184 | inline bool ATTRIBUTE_HIDDEN ShowAndGetNewPassword(std::string& newPassword, |
| 185 | unsigned int autoCloseMs = 0) | ||
| 174 | { | 186 | { |
| 175 | using namespace ::kodi::addon; | 187 | using namespace ::kodi::addon; |
| 176 | char* retString = nullptr; | 188 | char* retString = nullptr; |
| @@ -251,7 +263,10 @@ namespace dialogs | |||
| 251 | /// } | 263 | /// } |
| 252 | /// ~~~~~~~~~~~~~ | 264 | /// ~~~~~~~~~~~~~ |
| 253 | /// | 265 | /// |
| 254 | inline bool ShowAndVerifyNewPassword(std::string& newPassword, const std::string& heading, bool allowEmptyResult, unsigned int autoCloseMs = 0) | 266 | inline bool ATTRIBUTE_HIDDEN ShowAndVerifyNewPassword(std::string& newPassword, |
| 267 | const std::string& heading, | ||
| 268 | bool allowEmptyResult, | ||
| 269 | unsigned int autoCloseMs = 0) | ||
| 255 | { | 270 | { |
| 256 | using namespace ::kodi::addon; | 271 | using namespace ::kodi::addon; |
| 257 | char* retString = nullptr; | 272 | char* retString = nullptr; |
| @@ -281,7 +296,8 @@ namespace dialogs | |||
| 281 | /// false if unsuccessful display, no user | 296 | /// false if unsuccessful display, no user |
| 282 | /// input, or canceled editing. | 297 | /// input, or canceled editing. |
| 283 | /// | 298 | /// |
| 284 | inline bool ShowAndVerifyNewPassword(std::string& newPassword, unsigned int autoCloseMs = 0) | 299 | inline bool ATTRIBUTE_HIDDEN ShowAndVerifyNewPassword(std::string& newPassword, |
| 300 | unsigned int autoCloseMs = 0) | ||
| 285 | { | 301 | { |
| 286 | using namespace ::kodi::addon; | 302 | using namespace ::kodi::addon; |
| 287 | char* retString = nullptr; | 303 | char* retString = nullptr; |
| @@ -313,7 +329,10 @@ namespace dialogs | |||
| 313 | /// unsuccessful input. -1 if no user input or | 329 | /// unsuccessful input. -1 if no user input or |
| 314 | /// canceled editing. | 330 | /// canceled editing. |
| 315 | /// | 331 | /// |
| 316 | inline int ShowAndVerifyPassword(std::string& password, const std::string& heading, int retries, unsigned int autoCloseMs = 0) | 332 | inline int ATTRIBUTE_HIDDEN ShowAndVerifyPassword(std::string& password, |
| 333 | const std::string& heading, | ||
| 334 | int retries, | ||
| 335 | unsigned int autoCloseMs = 0) | ||
| 317 | { | 336 | { |
| 318 | using namespace ::kodi::addon; | 337 | using namespace ::kodi::addon; |
| 319 | char* retString = nullptr; | 338 | char* retString = nullptr; |
| @@ -347,7 +366,9 @@ namespace dialogs | |||
| 347 | /// false if unsuccessful display, no user | 366 | /// false if unsuccessful display, no user |
| 348 | /// input, or canceled editing. | 367 | /// input, or canceled editing. |
| 349 | /// | 368 | /// |
| 350 | inline bool ShowAndGetFilter(std::string& text, bool searching, unsigned int autoCloseMs = 0) | 369 | inline bool ATTRIBUTE_HIDDEN ShowAndGetFilter(std::string& text, |
| 370 | bool searching, | ||
| 371 | unsigned int autoCloseMs = 0) | ||
| 351 | { | 372 | { |
| 352 | using namespace ::kodi::addon; | 373 | using namespace ::kodi::addon; |
| 353 | char* retString = nullptr; | 374 | char* retString = nullptr; |
| @@ -372,7 +393,8 @@ namespace dialogs | |||
| 372 | /// @return true if successful done, false if | 393 | /// @return true if successful done, false if |
| 373 | /// unsuccessful or keyboard not present. | 394 | /// unsuccessful or keyboard not present. |
| 374 | /// | 395 | /// |
| 375 | inline bool SendTextToActiveKeyboard(const std::string& text, bool closeKeyboard = false) | 396 | inline bool ATTRIBUTE_HIDDEN SendTextToActiveKeyboard(const std::string& text, |
| 397 | bool closeKeyboard = false) | ||
| 376 | { | 398 | { |
| 377 | using namespace ::kodi::addon; | 399 | using namespace ::kodi::addon; |
| 378 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->send_text_to_active_keyboard(CAddonBase::m_interface->toKodi->kodiBase, | 400 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->send_text_to_active_keyboard(CAddonBase::m_interface->toKodi->kodiBase, |
| @@ -387,7 +409,7 @@ namespace dialogs | |||
| 387 | /// | 409 | /// |
| 388 | /// @return true if keyboard present, false if not present | 410 | /// @return true if keyboard present, false if not present |
| 389 | /// | 411 | /// |
| 390 | inline bool IsKeyboardActivated() | 412 | inline bool ATTRIBUTE_HIDDEN IsKeyboardActivated() |
| 391 | { | 413 | { |
| 392 | using namespace ::kodi::addon; | 414 | using namespace ::kodi::addon; |
| 393 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->is_keyboard_activated(CAddonBase::m_interface->toKodi->kodiBase); | 415 | return CAddonBase::m_interface->toKodi->kodi_gui->dialogKeyboard->is_keyboard_activated(CAddonBase::m_interface->toKodi->kodiBase); |
