blob: 94678e3251b7204efbac6fefdf3a91e2eaa06f56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "GUIDialogBoxBase.h"
#include "messaging/helpers/DialogOKHelper.h"
class CGUIMessage;
class CVariant;
using namespace KODI::MESSAGING;
class CGUIDialogOK :
public CGUIDialogBoxBase
{
public:
CGUIDialogOK(void);
~CGUIDialogOK(void) override;
bool OnMessage(CGUIMessage& message) override;
static bool ShowAndGetInput(const CVariant& heading, const CVariant& text);
static bool ShowAndGetInput(const CVariant& heading,
const CVariant& line0,
const CVariant& line1,
const CVariant& line2);
/*!
\brief Open a OK dialog and wait for input
\param[in] options a struct of type DialogOKMessage containing
the options to set for this dialog.
\sa KODI::MESSAGING::HELPERS::DialogOKMessage
*/
bool ShowAndGetInput(const HELPERS::DialogOKMessage& options);
protected:
void OnInitWindow() override;
int GetDefaultLabelID(int controlId) const override;
};
|