File indexing completed on 2024-10-06 04:59:18

0001 /*
0002  *   SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
0003  *   SPDX-FileCopyrightText: 2018 Drew DeVault <sir@cmpwn.com>
0004  *
0005  *   SPDX-License-Identifier: LGPL-3.0-or-later
0006  */
0007 
0008 #ifndef _LAYERSHELLINTEGRATION_P_H
0009 #define _LAYERSHELLINTEGRATION_P_H
0010 
0011 #include "layershellqt_export.h"
0012 
0013 #include <QtWaylandClient/private/qwaylandshellintegration_p.h>
0014 #include <qwayland-wlr-layer-shell-unstable-v1.h>
0015 
0016 class QWaylandXdgActivationV1;
0017 
0018 namespace LayerShellQt
0019 {
0020 
0021 class LAYERSHELLQT_EXPORT QWaylandLayerShellIntegration : public QtWaylandClient::QWaylandShellIntegrationTemplate<QWaylandLayerShellIntegration>, public QtWayland::zwlr_layer_shell_v1
0022 {
0023 public:
0024     QWaylandLayerShellIntegration();
0025     ~QWaylandLayerShellIntegration() override;
0026 
0027     QWaylandXdgActivationV1 *activation() const { return m_xdgActivation.data(); }
0028     QtWaylandClient::QWaylandShellSurface *createShellSurface(QtWaylandClient::QWaylandWindow *window) override;
0029 private:
0030     QScopedPointer<QWaylandXdgActivationV1> m_xdgActivation;
0031 };
0032 
0033 }
0034 
0035 #endif