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
11struct wl_resource;
12
13QT_BEGIN_NAMESPACE
14
15class QWaylandDestroyListenerPrivate;
16
17class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandDestroyListener : public QObject
18{
19 Q_OBJECT
20 Q_DECLARE_PRIVATE(QWaylandDestroyListener)
21public:
22 QWaylandDestroyListener(QObject *parent = nullptr);
23 void listenForDestruction(struct wl_resource *resource);
24 void reset();
25
26Q_SIGNALS:
27 void fired(void *data);
28
29};
30
31QT_END_NAMESPACE
32
33#endif /*QWAYLANDDESTROYLISTENER_H*/
34

source code of qtwayland/src/compositor/compositor_api/qwaylanddestroylistener.h