// 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 PACKAGEMANAGER_P_H #define PACKAGEMANAGER_P_H #include #include #include #include #include #include #include #include #include QT_BEGIN_NAMESPACE_AM bool removeRecursiveHelper(const QString &path); class PackageManagerPrivate { public: PackageDatabase *database = nullptr; QVector packages; bool aboutToBeRemoved = false; QMap pendingPackageInfoUpdates; // AXIVION Line Qt-QMapWithPointerKey: package is locked bool enableInstaller = false; bool developmentMode = false; bool allowInstallationOfUnsignedPackages = false; QString installationPath; QString documentPath; QString error; QString hardwareId; QByteArrayList chainOfTrust; bool cleanupBrokenInstallationsDone = false; #if QT_CONFIG(am_installer) QList incomingTaskList; // incoming queue QList installationTaskList; // installation jobs in state >= AwaitingAcknowledge AsynchronousTask *activeTask = nullptr; // currently active QList allTasks() const { QList all = incomingTaskList; if (!installationTaskList.isEmpty()) all += installationTaskList; if (activeTask) all += activeTask; return all; } #endif }; QT_END_NAMESPACE_AM // We mean it. Dummy comment since syncqt needs this also for completely private Qt modules. #endif // PACKAGEMANAGER_P_H