blob: 7b0ad850d00cfca13069e04438513b5c977e6fd1 (
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
55
56
57
58
59
60
61
|
// 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 WINDOWMANAGER_P_H
#define WINDOWMANAGER_P_H
#include <QVector>
#include <QMap>
#include <QHash>
#include <QtAppManWindow/windowmanager.h>
QT_FORWARD_DECLARE_CLASS(QQmlEngine)
QT_BEGIN_NAMESPACE_AM
class WindowManagerPrivate
{
public:
int findWindowBySurfaceItem(QQuickItem *quickItem) const;
#if QT_CONFIG(am_multi_process)
int findWindowByWaylandSurface(QWaylandSurface *waylandSurface) const;
WaylandCompositor *waylandCompositor = nullptr;
QVector<int> extraWaylandSockets;
struct {
std::chrono::milliseconds checkInterval { };
std::chrono::milliseconds warnTimeout { };
std::chrono::milliseconds killTimeout { };
} waylandWatchdog;
static QString applicationId(Application *app, WindowSurface *windowSurface);
#endif
QHash<int, QByteArray> roleNames;
// All windows, regardless of content state, that haven't been released (hence destroyed) yet.
QVector<Window *> allWindows;
// Windows that are actually exposed by the model to the QML side.
// Only windows whose content state is different than Window::NoSurface are
// kept here.
QVector<Window *> windowsInModel;
bool aboutToBeRemoved = false;
bool shuttingDown = false;
bool slowAnimations = false;
bool allowUnknownUiClients = false;
QList<QQuickWindow *> views;
QString waylandSocketName;
QQmlEngine *qmlEngine = nullptr;
};
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
#endif // WINDOWMANAGER_P_H
|