| 1 | // Copyright (C) 2017 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QWAYLANDIVIAPPLICATION_P_H |
| 5 | #define QWAYLANDIVIAPPLICATION_P_H |
| 6 | |
| 7 | #include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h> |
| 8 | #include <QtWaylandCompositor/private/qwayland-server-ivi-application.h> |
| 9 | |
| 10 | #include <QtWaylandCompositor/QWaylandIviApplication> |
| 11 | |
| 12 | #include <QHash> |
| 13 | |
| 14 | // |
| 15 | // W A R N I N G |
| 16 | // ------------- |
| 17 | // |
| 18 | // This file is not part of the Qt API. It exists purely as an |
| 19 | // implementation detail. This header file may change from version to |
| 20 | // version without notice, or even be removed. |
| 21 | // |
| 22 | // We mean it. |
| 23 | // |
| 24 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | |
| 27 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandIviApplicationPrivate |
| 28 | : public QWaylandCompositorExtensionPrivate |
| 29 | , public QtWaylandServer::ivi_application |
| 30 | { |
| 31 | Q_DECLARE_PUBLIC(QWaylandIviApplication) |
| 32 | |
| 33 | public: |
| 34 | QWaylandIviApplicationPrivate(); |
| 35 | static QWaylandIviApplicationPrivate *get(QWaylandIviApplication *iviApplication) { return iviApplication->d_func(); } |
| 36 | void unregisterIviSurface(QWaylandIviSurface *iviSurface); |
| 37 | |
| 38 | QHash<uint, QWaylandIviSurface*> m_iviSurfaces; |
| 39 | |
| 40 | protected: |
| 41 | void ivi_application_surface_create(Resource *resource, uint32_t ivi_id, wl_resource *surface, uint32_t id) override; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QWAYLANDIVIAPPLICATION_P_H |
| 47 |
