xbmc
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 
14 namespace XBMCAddon
15 {
16  namespace xbmcgui
17  {
18  //
50  //
51  class WindowDialog : public Window, private WindowDialogMixin
52  {
53  public:
54  WindowDialog();
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: WindowDialogMixin.h:23
Definition: WindowDialog.h:51
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
Definition: GUIMessage.h:365
Definition: Window.h:186