1 | // Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com> |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QTWAYLAND_QWLLISTENER_H |
5 | #define QTWAYLAND_QWLLISTENER_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtWaylandCompositor/QWaylandDestroyListener> |
19 | |
20 | #include <QtCore/private/qobject_p.h> |
21 | |
22 | #include <wayland-server-core.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QWaylandDestroyListenerPrivate : public QObjectPrivate |
27 | { |
28 | public: |
29 | Q_DECLARE_PUBLIC(QWaylandDestroyListener) |
30 | |
31 | QWaylandDestroyListenerPrivate(); |
32 | |
33 | static void handler(wl_listener *listener, void *data); |
34 | |
35 | struct Listener { |
36 | wl_listener listener; |
37 | QWaylandDestroyListenerPrivate *parent = nullptr; |
38 | }; |
39 | Listener listener; |
40 | }; |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif |
45 | |