[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / dialogs / GUIDialogOK.h
blob94678e3251b7204efbac6fefdf3a91e2eaa06f56
1 /*
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.
7 */
9 #pragma once
11 #include "GUIDialogBoxBase.h"
12 #include "messaging/helpers/DialogOKHelper.h"
14 class CGUIMessage;
15 class CVariant;
17 using namespace KODI::MESSAGING;
19 class CGUIDialogOK :
20 public CGUIDialogBoxBase
22 public:
23 CGUIDialogOK(void);
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);
31 /*!
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);
40 protected:
41 void OnInitWindow() override;
42 int GetDefaultLabelID(int controlId) const override;