Kodi Development
22.0
for Binary and Script based Add-Ons
Loading...
Searching...
No Matches
OK.h
1
/*
2
* Copyright (C) 2005-2018 Team Kodi
3
* This file is part of Kodi - https://kodi.tv
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
* See LICENSES/README.md for more information.
7
*/
8
9
#pragma once
10
11
#include "../../AddonBase.h"
12
#include "../../c-api/gui/dialogs/ok.h"
13
14
#ifdef __cplusplus
15
16
namespace
kodi
17
{
18
namespace
gui
19
{
20
namespace
dialogs
21
{
22
23
//==============================================================================
35
namespace
OK
36
{
37
//==============================================================================
55
inline
void
ATTR_DLL_LOCAL
ShowAndGetInput
(
const
std::string& heading,
const
std::string& text)
56
{
57
using namespace
::kodi::addon;
58
CPrivateBase::m_interface->toKodi->kodi_gui->dialogOK->show_and_get_input_single_text(
59
CPrivateBase::m_interface->toKodi->kodiBase, heading.c_str(), text.c_str());
60
}
61
//------------------------------------------------------------------------------
62
63
//==============================================================================
83
inline
void
ATTR_DLL_LOCAL
ShowAndGetInput
(
const
std::string& heading,
84
const
std::string& line0,
85
const
std::string& line1,
86
const
std::string& line2)
87
{
88
using namespace
::kodi::addon;
89
CPrivateBase::m_interface->toKodi->kodi_gui->dialogOK->show_and_get_input_line_text(
90
CPrivateBase::m_interface->toKodi->kodiBase, heading.c_str(), line0.c_str(), line1.c_str(),
91
line2.c_str());
92
}
93
//------------------------------------------------------------------------------
94
}
// namespace OK
96
97
}
/* namespace dialogs */
98
}
/* namespace gui */
99
}
/* namespace kodi */
100
101
#endif
/* __cplusplus */
kodi::gui::dialogs::OK::ShowAndGetInput
void ATTR_DLL_LOCAL ShowAndGetInput(const std::string &heading, const std::string &text)
Use dialog to inform user with text and confirmation with OK with continued string.
Definition
OK.h:55
include
kodi
gui
dialogs
OK.h
Generated by
1.12.0