7#include "waylandxdgforeignv2_p.h"
9#include <QGuiApplication>
11WaylandXdgForeignExportedV2::WaylandXdgForeignExportedV2(::zxdg_exported_v2 *
object)
13 , QtWayland::zxdg_exported_v2(object)
17WaylandXdgForeignExportedV2::~WaylandXdgForeignExportedV2()
24QString WaylandXdgForeignExportedV2::handle()
const
29void WaylandXdgForeignExportedV2::zxdg_exported_v2_handle(
const QString &handle)
32 Q_EMIT handleReceived(handle);
35WaylandXdgForeignExporterV2::WaylandXdgForeignExporterV2()
36 : QWaylandClientExtensionTemplate<WaylandXdgForeignExporterV2>(1)
41WaylandXdgForeignExporterV2::~WaylandXdgForeignExporterV2()
43 if (qGuiApp && isActive()) {
48WaylandXdgForeignExporterV2 &WaylandXdgForeignExporterV2::self()
50 static WaylandXdgForeignExporterV2 s_instance;
54WaylandXdgForeignExportedV2 *WaylandXdgForeignExporterV2::exportToplevel(wl_surface *surface)
56 return new WaylandXdgForeignExportedV2(export_toplevel(surface));
59WaylandXdgForeignImportedV2::WaylandXdgForeignImportedV2(
const QString &handle, ::zxdg_imported_v2 *
object)
61 , QtWayland::zxdg_imported_v2(object)
66WaylandXdgForeignImportedV2::~WaylandXdgForeignImportedV2()
73void WaylandXdgForeignImportedV2::zxdg_imported_v2_destroyed()
78QString WaylandXdgForeignImportedV2::handle()
const
83WaylandXdgForeignImporterV2::WaylandXdgForeignImporterV2()
84 : QWaylandClientExtensionTemplate<WaylandXdgForeignImporterV2>(1)
89WaylandXdgForeignImporterV2::~WaylandXdgForeignImporterV2()
91 if (qGuiApp && isActive()) {
96WaylandXdgForeignImporterV2 &WaylandXdgForeignImporterV2::self()
98 static WaylandXdgForeignImporterV2 s_instance;
102WaylandXdgForeignImportedV2 *WaylandXdgForeignImporterV2::importToplevel(
const QString &handle)
104 return new WaylandXdgForeignImportedV2(handle, import_toplevel(handle));
107#include "moc_waylandxdgforeignv2_p.cpp"
void initialize(StandardShortcut id)