[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / interfaces / legacy / WindowDialogMixin.h
blob5057e81a1fcfc4540f0fe0bc274659ec85fe5387
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 "Window.h"
13 // These messages are a side effect of the way dialogs work through the
14 // main ApplicationMessenger. At some point it would be nice to remove
15 // the messenger and have direct (or even drive) communications.
16 #define HACK_CUSTOM_ACTION_CLOSING -3
17 #define HACK_CUSTOM_ACTION_OPENING -4
19 namespace XBMCAddon
21 namespace xbmcgui
23 class WindowDialogMixin
25 private:
26 Window* w;
28 protected:
29 inline explicit WindowDialogMixin(Window* window) : w(window) {}
31 public:
32 virtual ~WindowDialogMixin() = default;
34 SWIGHIDDENVIRTUAL void show();
35 SWIGHIDDENVIRTUAL void close();
37 #ifndef SWIG
38 SWIGHIDDENVIRTUAL bool IsDialogRunning() const;
39 SWIGHIDDENVIRTUAL bool OnAction(const CAction &action);
40 #endif