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.
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
23 class WindowDialogMixin
29 inline explicit WindowDialogMixin(Window
* window
) : w(window
) {}
32 virtual ~WindowDialogMixin() = default;
34 SWIGHIDDENVIRTUAL
void show();
35 SWIGHIDDENVIRTUAL
void close();
38 SWIGHIDDENVIRTUAL
bool IsDialogRunning() const;
39 SWIGHIDDENVIRTUAL
bool OnAction(const CAction
&action
);