blob: 58baad0241238a7f17a7a808ecbe360f941b97d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright (C) 2022 David Reondo <kde@david-redondo.de>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qwaylandxdgexporterv2_p.h"
QT_BEGIN_NAMESPACE
namespace QtWaylandClient {
QWaylandXdgExportedV2::QWaylandXdgExportedV2(::zxdg_exported_v2 *object)
: QtWayland::zxdg_exported_v2(object)
{
}
QWaylandXdgExportedV2::~QWaylandXdgExportedV2()
{
destroy();
}
void QWaylandXdgExportedV2::zxdg_exported_v2_handle(const QString &handle)
{
mHandle = handle;
}
QString QWaylandXdgExportedV2::handle() const
{
return mHandle;
}
QWaylandXdgExporterV2::QWaylandXdgExporterV2(wl_registry *registry, uint32_t id, int version)
: QtWayland::zxdg_exporter_v2(registry, id, qMin(version, 1))
{
}
QWaylandXdgExporterV2::~QWaylandXdgExporterV2()
{
destroy();
}
QtWaylandClient::QWaylandXdgExportedV2 *QWaylandXdgExporterV2::exportToplevel(wl_surface *surface)
{
return new QWaylandXdgExportedV2(export_toplevel(surface));
}
}
QT_END_NAMESPACE
|