| 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 | #include "qwaylandxdgexporterv2_p.h" |
| 5 | |
| 6 | QT_BEGIN_NAMESPACE |
| 7 | |
| 8 | namespace QtWaylandClient { |
| 9 | |
| 10 | QWaylandXdgExportedV2::QWaylandXdgExportedV2(::zxdg_exported_v2 *object) |
| 11 | : QtWayland::zxdg_exported_v2(object) |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | QWaylandXdgExportedV2::~QWaylandXdgExportedV2() |
| 16 | { |
| 17 | destroy(); |
| 18 | } |
| 19 | |
| 20 | void QWaylandXdgExportedV2::zxdg_exported_v2_handle(const QString &handle) |
| 21 | { |
| 22 | mHandle = handle; |
| 23 | } |
| 24 | |
| 25 | QString QWaylandXdgExportedV2::handle() const |
| 26 | { |
| 27 | return mHandle; |
| 28 | } |
| 29 | |
| 30 | QWaylandXdgExporterV2::QWaylandXdgExporterV2(wl_registry *registry, uint32_t id, int version) |
| 31 | : QtWayland::zxdg_exporter_v2(registry, id, qMin(version, 1)) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | QWaylandXdgExporterV2::~QWaylandXdgExporterV2() |
| 36 | { |
| 37 | destroy(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | QT_END_NAMESPACE |
| 42 |
