Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
WindowDialog.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 "Window.h"
12#include "WindowDialogMixin.h"
13
14namespace XBMCAddon
15{
16 namespace xbmcgui
17 {
18 //
50 //
51 class WindowDialog : public Window, private WindowDialogMixin
52 {
53 public:
55 ~WindowDialog() override;
56
57#ifndef SWIG
58 bool OnMessage(CGUIMessage& message) override;
59 bool OnAction(const CAction& action) override;
60 void OnDeinitWindow(int nextWindowID) override;
61
62 bool IsDialogRunning() const override { return WindowDialogMixin::IsDialogRunning(); }
63 bool IsModalDialog() const override
64 {
65 XBMC_TRACE;
66 return true;
67 };
68 bool IsDialog() const override
69 {
70 XBMC_TRACE;
71 return true;
72 };
73
74 inline void show() override
75 {
76 XBMC_TRACE;
77 WindowDialogMixin::show();
78 }
79 inline void close() override
80 {
81 XBMC_TRACE;
82 WindowDialogMixin::close();
83 }
84#endif
85 };
87 }
88}
Definition WindowDialog.h:52
Definition Window.h:187