1/****************************************************************************
2**
3** Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com>
4** Copyright (C) 2017 The Qt Company Ltd.
5** Contact: https://www.qt.io/licensing/
6**
7** This file is part of the QtWaylandCompositor module of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:GPL$
10** Commercial License Usage
11** Licensees holding valid commercial Qt licenses may use this file in
12** accordance with the commercial license agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and The Qt Company. For licensing terms
15** and conditions see https://www.qt.io/terms-conditions. For further
16** information use the contact form at https://www.qt.io/contact-us.
17**
18** GNU General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU
20** General Public License version 3 or (at your option) any later version
21** approved by the KDE Free Qt Foundation. The licenses are as published by
22** the Free Software Foundation and appearing in the file LICENSE.GPL3
23** included in the packaging of this file. Please review the following
24** information to ensure the GNU General Public License requirements will
25** be met: https://www.gnu.org/licenses/gpl-3.0.html.
26**
27** $QT_END_LICENSE$
28**
29****************************************************************************/
30
31#ifndef QWAYLANDDESTROYLISTENER_H
32#define QWAYLANDDESTROYLISTENER_H
33
34#include <QtCore/QObject>
35#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
36
37struct wl_resource;
38
39QT_BEGIN_NAMESPACE
40
41class QWaylandDestroyListenerPrivate;
42
43class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandDestroyListener : public QObject
44{
45 Q_OBJECT
46 Q_DECLARE_PRIVATE(QWaylandDestroyListener)
47public:
48 QWaylandDestroyListener(QObject *parent = nullptr);
49 void listenForDestruction(struct wl_resource *resource);
50 void reset();
51
52Q_SIGNALS:
53 void fired(void *data);
54
55};
56
57QT_END_NAMESPACE
58
59#endif /*QWAYLANDDESTROYLISTENER_H*/
60

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