summaryrefslogtreecommitdiffstats
path: root/src/plugins/shellintegration/xdg-shell/qwaylandxdgexporterv2.cpp
blob: 5cbbecc539609670c12e1e2b12e87949a422e1b9 (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
// 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();
}
}

QT_END_NAMESPACE