1 | // Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com> |
2 | // Copyright (C) 2017 The Qt Company Ltd. |
3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
4 | |
5 | #ifndef QWAYLANDDESTROYLISTENER_H |
6 | #define QWAYLANDDESTROYLISTENER_H |
7 | |
8 | #include <QtCore/QObject> |
9 | #include <QtWaylandCompositor/qtwaylandcompositorglobal.h> |
10 | |
11 | struct wl_resource; |
12 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | class QWaylandDestroyListenerPrivate; |
16 | |
17 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandDestroyListener : public QObject |
18 | { |
19 | Q_OBJECT |
20 | Q_DECLARE_PRIVATE(QWaylandDestroyListener) |
21 | public: |
22 | QWaylandDestroyListener(QObject *parent = nullptr); |
23 | void listenForDestruction(struct wl_resource *resource); |
24 | void reset(); |
25 | |
26 | Q_SIGNALS: |
27 | void fired(void *data); |
28 | |
29 | }; |
30 | |
31 | QT_END_NAMESPACE |
32 | |
33 | #endif /*QWAYLANDDESTROYLISTENER_H*/ |
34 | |