1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDIVISURFACE_P_H
5#define QWAYLANDIVISURFACE_P_H
6
7#include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h>
8#include <QtWaylandCompositor/private/qwayland-server-ivi-application.h>
9
10#include <QtWaylandCompositor/QWaylandIviSurface>
11
12#include <QtWaylandCompositor/QWaylandSurfaceRole>
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
25QT_BEGIN_NAMESPACE
26
27class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandIviSurfacePrivate
28 : public QWaylandCompositorExtensionPrivate
29 , public QtWaylandServer::ivi_surface
30{
31 Q_DECLARE_PUBLIC(QWaylandIviSurface)
32
33public:
34 QWaylandIviSurfacePrivate();
35 static QWaylandIviSurfacePrivate *get(QWaylandIviSurface *iviSurface) { return iviSurface->d_func(); }
36
37protected:
38 void ivi_surface_destroy_resource(Resource *resource) override;
39 void ivi_surface_destroy(Resource *resource) override;
40
41private:
42 QWaylandIviApplication *m_iviApplication = nullptr;
43 QWaylandSurface *m_surface = nullptr;
44 uint m_iviId = UINT_MAX;
45
46 static QWaylandSurfaceRole s_role;
47};
48
49QT_END_NAMESPACE
50
51#endif // QWAYLANDIVISURFACE_P_H
52

source code of qtwayland/src/compositor/extensions/qwaylandivisurface_p.h