blob: dc76d437f7898c501c53eb52e3c7c02f73a7f89b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef WAYLANDQTAMSERVEREXTENSION_P_H
#define WAYLANDQTAMSERVEREXTENSION_P_H
#include <QtWaylandCompositor/QWaylandCompositorExtensionTemplate>
#include <QtCore/QVariant>
#include "private/qwayland-server-qtam-extension.h"
#include <QtAppManCommon/global.h>
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
QT_FORWARD_DECLARE_CLASS(QWaylandCompositor)
QT_FORWARD_DECLARE_CLASS(QWaylandSurface)
QT_BEGIN_NAMESPACE_AM
class WaylandQtAMServerExtension : public QWaylandCompositorExtensionTemplate<WaylandQtAMServerExtension>,
public ::QtWaylandServer::qtam_extension
{
Q_OBJECT
public:
WaylandQtAMServerExtension(QWaylandCompositor *compositor);
QVariantMap windowProperties(const QWaylandSurface *surface) const;
void setWindowProperty(QWaylandSurface *surface, const QString &name, const QVariant &value);
Q_SIGNALS:
void windowPropertyChanged(QWaylandSurface *surface, const QString &name, const QVariant &value);
private:
bool setWindowPropertyHelper(QWaylandSurface *surface, const QString &name, const QVariant &value);
void qtam_extension_set_window_property(Resource *resource, wl_resource *surface_resource, const QString &name, wl_array *value) override;
QMap<const QWaylandSurface *, QVariantMap> m_windowProperties; // AXIVION Line Qt-QMapWithPointerKey: cleared on destroyed signal
};
QT_END_NAMESPACE_AM
#endif // WAYLANDQTAMSERVEREXTENSION_P_H
|