| 1 | // Copyright (C) 2017 Jolla Ltd, author: <giulio.camuffo@jollamobile.com> |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QWAYLANDQUICKCOMPOSITOR_H |
| 5 | #define QWAYLANDQUICKCOMPOSITOR_H |
| 6 | |
| 7 | #include <QtWaylandCompositor/qwaylandcompositor.h> |
| 8 | #include <QtQml/QQmlParserStatus> |
| 9 | |
| 10 | QT_REQUIRE_CONFIG(wayland_compositor_quick); |
| 11 | |
| 12 | QT_BEGIN_NAMESPACE |
| 13 | |
| 14 | class QQuickWindow; |
| 15 | class QWaylandQuickCompositorPrivate; |
| 16 | class QWaylandView; |
| 17 | |
| 18 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQuickCompositor : public QWaylandCompositor, public QQmlParserStatus |
| 19 | { |
| 20 | Q_INTERFACES(QQmlParserStatus) |
| 21 | Q_OBJECT |
| 22 | public: |
| 23 | QWaylandQuickCompositor(QObject *parent = nullptr); |
| 24 | void create() override; |
| 25 | |
| 26 | void grabSurface(QWaylandSurfaceGrabber *grabber, const QWaylandBufferRef &buffer) override; |
| 27 | |
| 28 | protected: |
| 29 | void classBegin() override; |
| 30 | void componentComplete() override; |
| 31 | }; |
| 32 | |
| 33 | QT_END_NAMESPACE |
| 34 | |
| 35 | #endif |
| 36 | |