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
16namespace kodi
17{
18namespace gui
19{
20namespace dialogs
21{
22
23//==============================================================================
35namespace OK
36{
37//==============================================================================
55inline 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//==============================================================================
83inline 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 */
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