1// Copyright (C) 2022 David Reondo <kde@david-redondo.de>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDXDGEXPORTERV2_H
5#define QWAYLANDXDGEXPORTERV2_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 <qwayland-xdg-foreign-unstable-v2.h>
19
20#include <QtWaylandClient/qtwaylandclientglobal.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace QtWaylandClient {
25
26class QWaylandXdgExportedV2 : public QtWayland::zxdg_exported_v2
27{
28public:
29 explicit QWaylandXdgExportedV2(::zxdg_exported_v2 *object);
30 ~QWaylandXdgExportedV2() override;
31 QString handle() const;
32
33private:
34 void zxdg_exported_v2_handle(const QString &handle) override;
35 QString mHandle;
36};
37
38class QWaylandXdgExporterV2 : public QtWayland::zxdg_exporter_v2
39{
40public:
41 QWaylandXdgExporterV2(wl_registry *registry, uint32_t id, int version);
42 ~QWaylandXdgExporterV2() override;
43 QWaylandXdgExportedV2 *exportToplevel(wl_surface *surface);
44};
45
46}
47
48QT_END_NAMESPACE
49
50#endif // QWAYLANDXDGEXPORTERV2_H
51

source code of qtwayland/src/plugins/shellintegration/xdg-shell/qwaylandxdgexporterv2_p.h