summaryrefslogtreecommitdiff
path: root/src/manager-lib/applicationmanager_p.h
blob: 318898e0fea40077540863514f22d709b9e32aa9 (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
// 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

#pragma once

#include <QStringList>
#include <QVariantMap>
#include <QJSValue>
#include <QSet>
#include <QtAppManCommon/global.h>
#include <QtAppManManager/applicationmanager.h>

QT_BEGIN_NAMESPACE_AM

class ApplicationManagerPrivate
{
public:
    bool securityChecksEnabled = true;
    bool singleProcess;
    bool shuttingDown = false;
    bool windowManagerCompositorReady = false;
    QVariantMap systemProperties;

    QVector<Application *> apps;

    QString currentLocale;
    QHash<int, QByteArray> roleNames;

    QList<QPair<QString, QString>> containerSelectionConfig;
    QJSValue containerSelectionFunction;

    QSet<QString> registeredMimeSchemes;
    struct OpenUrlRequest
    {
        QString requestId;
        QString urlStr;
        QString mimeTypeName;
        QStringList possibleAppIds;
    };

    QVector<OpenUrlRequest> openUrlRequests;

    ApplicationManagerPrivate();
    ~ApplicationManagerPrivate();
};

QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.