2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "GUIDialogBoxBase.h"
12 #include "messaging/helpers/DialogOKHelper.h"
17 using namespace KODI::MESSAGING
;
20 public CGUIDialogBoxBase
24 ~CGUIDialogOK(void) override
;
25 bool OnMessage(CGUIMessage
& message
) override
;
26 static bool ShowAndGetInput(const CVariant
& heading
, const CVariant
& text
);
27 static bool ShowAndGetInput(const CVariant
& heading
,
28 const CVariant
& line0
,
29 const CVariant
& line1
,
30 const CVariant
& line2
);
32 \brief Open a OK dialog and wait for input
34 \param[in] options a struct of type DialogOKMessage containing
35 the options to set for this dialog.
37 \sa KODI::MESSAGING::HELPERS::DialogOKMessage
39 bool ShowAndGetInput(const HELPERS::DialogOKMessage
& options
);
41 void OnInitWindow() override
;
42 int GetDefaultLabelID(int controlId
) const override
;