Namespace: kodi::gui::dialogs::OK
OK dialog
The functions listed below permit the call of a dialogue of information, a confirmation of the user by press from OK required.
It has the header #include <kodi/gui/dialogs/OK.h> be included to enjoy it.
◆ ShowAndGetInput() [1/2]
void ATTR_DLL_LOCAL ShowAndGetInput |
( |
const std::string & | heading, |
|
|
const std::string & | text ) |
|
inline |
Use dialog to inform user with text and confirmation with OK with continued string.
- Parameters
-
[in] | heading | Dialog heading. |
[in] | text | Multi-line text. |
Example:
#include <kodi/gui/dialogs/OK.h>
...
kodi::gui::dialogs::OK::ShowAndGetInput("Test dialog", "Hello World!\nI'm a call from add-on\n :) :D");
◆ ShowAndGetInput() [2/2]
void ATTR_DLL_LOCAL ShowAndGetInput |
( |
const std::string & | heading, |
|
|
const std::string & | line0, |
|
|
const std::string & | line1, |
|
|
const std::string & | line2 ) |
|
inline |
Use dialog to inform user with text and confirmation with OK with strings separated to the lines.
- Parameters
-
[in] | heading | Dialog heading. |
[in] | line0 | Line #1 text. |
[in] | line1 | Line #2 text. |
[in] | line2 | Line #3 text. |
Example:
#include <kodi/gui/dialogs/OK.h>
...
kodi::gui::dialogs::OK::ShowAndGetInput("Test dialog", "Hello World!", "I'm a call from add-on", " :) :D");