// Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #ifndef SHAREBUFFEREXTENSION_H #define SHAREBUFFEREXTENSION_H #include #include #include #include "qwayland-share-buffer.h" QT_BEGIN_NAMESPACE namespace QtWaylandClient { class QWaylandServerBuffer; class QWaylandServerBufferIntegration; }; class ShareBufferExtension : public QWaylandClientExtensionTemplate , public QtWayland::qt_share_buffer { Q_OBJECT public: ShareBufferExtension(); signals: void bufferReceived(QtWaylandClient::QWaylandServerBuffer *buffer); private: void share_buffer_cross_buffer(struct ::qt_server_buffer *buffer) override; QtWaylandClient::QWaylandServerBufferIntegration *m_server_buffer_integration = nullptr; }; QT_END_NAMESPACE #endif // SHAREBUFFEREXTENSION_H