summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2024-03-04 21:58:34 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-05 10:14:21 +0000
commit17c2db954a8970ff2a5dd898989e62e8861a204f (patch)
tree5dbc1dcd24deec1b960eaedf1b20bc943c64748c
parent2afeedcf99c3e5b866d6a026662ca1d2d6af0412 (diff)
Replace all #pragma once with old-style #ifdef include guards
Change-Id: I1805fbccf4d9398fddfe8f4ab977236afc49ca45 Fixes: QTBUG-122951 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io> (cherry picked from commit eaf92a7983b481ab6bcd125aff10ff678de1288a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/applicationmanager/application-features/apps/Crash/Sequel/sequelplugin.h5
-rw-r--r--examples/applicationmanager/application-features/apps/Crash/Sequel/terminator2.h5
-rw-r--r--examples/applicationmanager/application-features/apps/Crash/terminator1.h5
-rw-r--r--examples/applicationmanager/softwarecontainer-plugin/softwarecontainer.h5
-rw-r--r--src/application-lib/applicationinfo.h5
-rw-r--r--src/application-lib/installationreport.h5
-rw-r--r--src/application-lib/intentinfo.h5
-rw-r--r--src/application-lib/packagedatabase.h5
-rw-r--r--src/application-lib/packageinfo.h5
-rw-r--r--src/application-lib/packagescanner.h5
-rw-r--r--src/application-lib/yamlpackagescanner.h5
-rw-r--r--src/application-main-lib/applicationmain.h5
-rw-r--r--src/application-main-lib/dbusapplicationinterfaceimpl.h5
-rw-r--r--src/application-main-lib/dbusnotificationimpl.h5
-rw-r--r--src/application-main-lib/intentclientdbusimplementation.h5
-rw-r--r--src/application-main-lib/waylandapplicationmanagerwindowimpl.h5
-rw-r--r--src/application-main-lib/waylandqtamclientextension_p.h5
-rw-r--r--src/common-lib/architecture.h5
-rw-r--r--src/common-lib/colorprint.h5
-rw-r--r--src/common-lib/configcache.h5
-rw-r--r--src/common-lib/configcache_p.h5
-rw-r--r--src/common-lib/console.h5
-rw-r--r--src/common-lib/crashhandler.h5
-rw-r--r--src/common-lib/dbus-utilities.h5
-rw-r--r--src/common-lib/error.h5
-rw-r--r--src/common-lib/exception.h5
-rw-r--r--src/common-lib/filesystemmountwatcher.h5
-rw-r--r--src/common-lib/global.h5
-rw-r--r--src/common-lib/logging.h5
-rw-r--r--src/common-lib/processtitle.h5
-rw-r--r--src/common-lib/qml-utilities.h5
-rw-r--r--src/common-lib/qtyaml.h5
-rw-r--r--src/common-lib/unixsignalhandler.h5
-rw-r--r--src/common-lib/utilities.h5
-rw-r--r--src/crypto-lib/cryptography.h5
-rw-r--r--src/crypto-lib/libcryptofunction.h5
-rw-r--r--src/crypto-lib/signature.h5
-rw-r--r--src/crypto-lib/signature_p.h5
-rw-r--r--src/dbus-lib/dbuscontextadaptor.h5
-rw-r--r--src/dbus-lib/dbusdaemon.h5
-rw-r--r--src/dbus-lib/dbuspolicy.h5
-rw-r--r--src/intent-client-lib/intentclient.h5
-rw-r--r--src/intent-client-lib/intentclientrequest.h5
-rw-r--r--src/intent-client-lib/intentclientsysteminterface.h5
-rw-r--r--src/intent-client-lib/intenthandler.h5
-rw-r--r--src/intent-server-lib/intent.h5
-rw-r--r--src/intent-server-lib/intentmodel.h5
-rw-r--r--src/intent-server-lib/intentserver.h5
-rw-r--r--src/intent-server-lib/intentserverrequest.h5
-rw-r--r--src/intent-server-lib/intentserversysteminterface.h5
-rw-r--r--src/main-lib/configuration.h5
-rw-r--r--src/main-lib/configuration_p.h5
-rw-r--r--src/main-lib/main.h5
-rw-r--r--src/main-lib/mainmacro.h5
-rw-r--r--src/manager-lib/abstractcontainer.h5
-rw-r--r--src/manager-lib/abstractruntime.h5
-rw-r--r--src/manager-lib/amnamespace.h5
-rw-r--r--src/manager-lib/application.h5
-rw-r--r--src/manager-lib/applicationmanager.h5
-rw-r--r--src/manager-lib/applicationmanager_p.h5
-rw-r--r--src/manager-lib/applicationmodel.h5
-rw-r--r--src/manager-lib/asynchronoustask.h5
-rw-r--r--src/manager-lib/containerfactory.h5
-rw-r--r--src/manager-lib/debugwrapper.h5
-rw-r--r--src/manager-lib/deinstallationtask.h5
-rw-r--r--src/manager-lib/inprocesssurfaceitem.h5
-rw-r--r--src/manager-lib/installationtask.h5
-rw-r--r--src/manager-lib/intentaminterface.h5
-rw-r--r--src/manager-lib/nativeruntime.h5
-rw-r--r--src/manager-lib/notificationmanager.h5
-rw-r--r--src/manager-lib/notificationmodel.h5
-rw-r--r--src/manager-lib/package.h5
-rw-r--r--src/manager-lib/packagemanager.h5
-rw-r--r--src/manager-lib/packagemanager_p.h5
-rw-r--r--src/manager-lib/plugincontainer.h5
-rw-r--r--src/manager-lib/processcontainer.h5
-rw-r--r--src/manager-lib/processstatus.h5
-rw-r--r--src/manager-lib/qmlinprocapplicationinterfaceimpl.h5
-rw-r--r--src/manager-lib/qmlinprocapplicationmanagerwindowimpl.h5
-rw-r--r--src/manager-lib/qmlinprocnotificationimpl.h5
-rw-r--r--src/manager-lib/qmlinprocruntime.h5
-rw-r--r--src/manager-lib/quicklauncher.h5
-rw-r--r--src/manager-lib/runtimefactory.h5
-rw-r--r--src/manager-lib/scopeutilities.h5
-rw-r--r--src/manager-lib/sudo.h5
-rw-r--r--src/monitor-lib/processreader.h5
-rw-r--r--src/monitor-lib/sysfsreader.h5
-rw-r--r--src/monitor-lib/systemreader.h5
-rw-r--r--src/package-lib/packagecreator.h5
-rw-r--r--src/package-lib/packagecreator_p.h5
-rw-r--r--src/package-lib/packageextractor.h5
-rw-r--r--src/package-lib/packageextractor_p.h5
-rw-r--r--src/package-lib/packageutilities.h5
-rw-r--r--src/package-lib/packageutilities_p.h5
-rw-r--r--src/plugin-interfaces/containerinterface.h5
-rw-r--r--src/plugin-interfaces/startupinterface.h5
-rw-r--r--src/plugins/bubblewrap-container-plugin/bubblewrapcontainer.h5
-rw-r--r--src/qml/qtapplicationmanager_application_p.h5
-rw-r--r--src/qml/qtapplicationmanager_p.h5
-rw-r--r--src/qml/qtapplicationmanager_systemui_p.h5
-rw-r--r--src/shared-main-lib/applicationinterface.h5
-rw-r--r--src/shared-main-lib/applicationinterfaceimpl.h5
-rw-r--r--src/shared-main-lib/applicationmanagerwindow.h5
-rw-r--r--src/shared-main-lib/applicationmanagerwindowimpl.h5
-rw-r--r--src/shared-main-lib/cpustatus.h5
-rw-r--r--src/shared-main-lib/frametimer.h5
-rw-r--r--src/shared-main-lib/frametimerimpl.h5
-rw-r--r--src/shared-main-lib/gpustatus.h5
-rw-r--r--src/shared-main-lib/iostatus.h5
-rw-r--r--src/shared-main-lib/memorystatus.h5
-rw-r--r--src/shared-main-lib/monitormodel.h5
-rw-r--r--src/shared-main-lib/notification.h5
-rw-r--r--src/shared-main-lib/notificationimpl.h5
-rw-r--r--src/shared-main-lib/qmllogger.h5
-rw-r--r--src/shared-main-lib/sharedmain.h5
-rw-r--r--src/shared-main-lib/startuptimer.h5
-rw-r--r--src/tools/controller/interrupthandler.h5
-rw-r--r--src/tools/launcher-qml/launcher-qml_p.h5
-rw-r--r--src/tools/package-server/package-server.h5
-rw-r--r--src/tools/package-server/psconfiguration.h5
-rw-r--r--src/tools/package-server/pshttpinterface.h5
-rw-r--r--src/tools/package-server/pshttpinterface_p.h5
-rw-r--r--src/tools/package-server/pspackages.h5
-rw-r--r--src/tools/package-server/pspackages_p.h5
-rw-r--r--src/tools/packager/packagingjob.h5
-rw-r--r--src/tools/testrunner/amtest.h5
-rw-r--r--src/tools/testrunner/testrunner.h5
-rw-r--r--src/window-lib/inprocesswindow.h5
-rw-r--r--src/window-lib/systemframetimerimpl.h5
-rw-r--r--src/window-lib/waylandcompositor.h5
-rw-r--r--src/window-lib/waylandqtamserverextension_p.h5
-rw-r--r--src/window-lib/waylandwindow.h5
-rw-r--r--src/window-lib/window.h5
-rw-r--r--src/window-lib/windowitem.h5
-rw-r--r--src/window-lib/windowmanager.h5
-rw-r--r--src/window-lib/windowmanager_p.h5
-rw-r--r--tests/auto/error-checking.h5
-rw-r--r--tests/auto/qml/crash/qmlcrash/qmlcrash.h5
138 files changed, 552 insertions, 138 deletions
diff --git a/examples/applicationmanager/application-features/apps/Crash/Sequel/sequelplugin.h b/examples/applicationmanager/application-features/apps/Crash/Sequel/sequelplugin.h
index 7d0c0359..17d870c5 100644
--- a/examples/applicationmanager/application-features/apps/Crash/Sequel/sequelplugin.h
+++ b/examples/applicationmanager/application-features/apps/Crash/Sequel/sequelplugin.h
@@ -2,7 +2,8 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
// Needed for qmake only
-#pragma once
+#ifndef SEQUELPLUGIN_H
+#define SEQUELPLUGIN_H
#include <QQmlEngineExtensionPlugin>
@@ -20,3 +21,5 @@ public:
Q_UNUSED(registration);
}
};
+
+#endif // SEQUELPLUGIN_H
diff --git a/examples/applicationmanager/application-features/apps/Crash/Sequel/terminator2.h b/examples/applicationmanager/application-features/apps/Crash/Sequel/terminator2.h
index e4648272..9743dc63 100644
--- a/examples/applicationmanager/application-features/apps/Crash/Sequel/terminator2.h
+++ b/examples/applicationmanager/application-features/apps/Crash/Sequel/terminator2.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#pragma once
+#ifndef TERMINATOR2_H
+#define TERMINATOR2_H
#include <QQmlEngine>
#include <QThread>
@@ -41,3 +42,5 @@ private:
void run() override;
Terminator2 *m_terminator2;
};
+
+#endif // TERMINATOR2_H
diff --git a/examples/applicationmanager/application-features/apps/Crash/terminator1.h b/examples/applicationmanager/application-features/apps/Crash/terminator1.h
index 05ca5bcc..66c9c787 100644
--- a/examples/applicationmanager/application-features/apps/Crash/terminator1.h
+++ b/examples/applicationmanager/application-features/apps/Crash/terminator1.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#pragma once
+#ifndef TERMINATOR1_H
+#define TERMINATOR1_H
#include <QQmlEngine>
@@ -21,3 +22,5 @@ public:
[[noreturn]] Q_INVOKABLE void throwUnhandledException() const;
[[noreturn]] Q_INVOKABLE void exitGracefully() const;
};
+
+#endif // TERMINATOR1_H
diff --git a/examples/applicationmanager/softwarecontainer-plugin/softwarecontainer.h b/examples/applicationmanager/softwarecontainer-plugin/softwarecontainer.h
index f869563b..d6290636 100644
--- a/examples/applicationmanager/softwarecontainer-plugin/softwarecontainer.h
+++ b/examples/applicationmanager/softwarecontainer-plugin/softwarecontainer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#pragma once
+#ifndef SOFTWARECONTAINER_H
+#define SOFTWARECONTAINER_H
#include <QVariantMap>
#include <QFileInfo>
@@ -104,3 +105,5 @@ private:
QDBusInterface *m_interface = nullptr;
QMap<int, SoftwareContainer *> m_containers;
};
+
+#endif // SOFTWARECONTAINER_H
diff --git a/src/application-lib/applicationinfo.h b/src/application-lib/applicationinfo.h
index 40e36ed2..f8dae622 100644
--- a/src/application-lib/applicationinfo.h
+++ b/src/application-lib/applicationinfo.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONINFO_H
+#define APPLICATIONINFO_H
#include <QtCore/QDir>
#include <QtCore/QMap>
@@ -91,3 +92,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONINFO_H
diff --git a/src/application-lib/installationreport.h b/src/application-lib/installationreport.h
index 0875fc40..b621e942 100644
--- a/src/application-lib/installationreport.h
+++ b/src/application-lib/installationreport.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INSTALLATIONREPORT_H
+#define INSTALLATIONREPORT_H
#include <QtCore/QString>
#include <QtCore/QStringList>
@@ -61,3 +62,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INSTALLATIONREPORT_H
diff --git a/src/application-lib/intentinfo.h b/src/application-lib/intentinfo.h
index 338b236c..74c31eaf 100644
--- a/src/application-lib/intentinfo.h
+++ b/src/application-lib/intentinfo.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTINFO_H
+#define INTENTINFO_H
#include <QtCore/QMap>
#include <QtCore/QString>
@@ -69,3 +70,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTINFO_H
diff --git a/src/application-lib/packagedatabase.h b/src/application-lib/packagedatabase.h
index 38394d6c..a1a28c9d 100644
--- a/src/application-lib/packagedatabase.h
+++ b/src/application-lib/packagedatabase.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEDATABASE_H
+#define PACKAGEDATABASE_H
#include <QtAppManCommon/global.h>
#include <QtCore/QVector>
@@ -74,3 +75,5 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(PackageDatabase::PackageLocations)
QT_END_NAMESPACE_AM
+
+#endif // PACKAGEDATABASE_H
diff --git a/src/application-lib/packageinfo.h b/src/application-lib/packageinfo.h
index 439deb92..1231dc26 100644
--- a/src/application-lib/packageinfo.h
+++ b/src/application-lib/packageinfo.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEINFO_H
+#define PACKAGEINFO_H
#include <QtCore/QDir>
#include <QtCore/QMap>
@@ -86,3 +87,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGEINFO_H
diff --git a/src/application-lib/packagescanner.h b/src/application-lib/packagescanner.h
index b0b1b2f4..c8168247 100644
--- a/src/application-lib/packagescanner.h
+++ b/src/application-lib/packagescanner.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGESCANNER_H
+#define PACKAGESCANNER_H
#include <QtAppManCommon/global.h>
@@ -29,3 +30,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGESCANNER_H
diff --git a/src/application-lib/yamlpackagescanner.h b/src/application-lib/yamlpackagescanner.h
index 2bb326ba..13ef6058 100644
--- a/src/application-lib/yamlpackagescanner.h
+++ b/src/application-lib/yamlpackagescanner.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef YAMLPACKAGESCANNER_H
+#define YAMLPACKAGESCANNER_H
#include <QtCore/QIODevice>
#include <QtAppManApplication/packagescanner.h>
@@ -21,3 +22,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // YAMLPACKAGESCANNER_H
diff --git a/src/application-main-lib/applicationmain.h b/src/application-main-lib/applicationmain.h
index 1d374dfc..943c41de 100644
--- a/src/application-main-lib/applicationmain.h
+++ b/src/application-main-lib/applicationmain.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMAIN_H
+#define APPLICATIONMAIN_H
#include <QtCore/QUrl>
#include <QtCore/QPointer>
@@ -141,3 +142,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONMAIN_H
diff --git a/src/application-main-lib/dbusapplicationinterfaceimpl.h b/src/application-main-lib/dbusapplicationinterfaceimpl.h
index d6cafcdb..3c32fa88 100644
--- a/src/application-main-lib/dbusapplicationinterfaceimpl.h
+++ b/src/application-main-lib/dbusapplicationinterfaceimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUSAPPLICATIONINTERFACEIMPL_H
+#define DBUSAPPLICATIONINTERFACEIMPL_H
#include <QtAppManCommon/global.h>
#include <QtAppManSharedMain/applicationinterfaceimpl.h>
@@ -38,3 +39,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // DBUSAPPLICATIONINTERFACEIMPL_H
diff --git a/src/application-main-lib/dbusnotificationimpl.h b/src/application-main-lib/dbusnotificationimpl.h
index efa1a4af..4e0027d7 100644
--- a/src/application-main-lib/dbusnotificationimpl.h
+++ b/src/application-main-lib/dbusnotificationimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUSNOTIFICATIONIMPL_H
+#define DBUSNOTIFICATIONIMPL_H
#include <QtAppManCommon/global.h>
#include <QtAppManSharedMain/notificationimpl.h>
@@ -28,3 +29,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // DBUSNOTIFICATIONIMPL_H
diff --git a/src/application-main-lib/intentclientdbusimplementation.h b/src/application-main-lib/intentclientdbusimplementation.h
index 075e9113..fc799216 100644
--- a/src/application-main-lib/intentclientdbusimplementation.h
+++ b/src/application-main-lib/intentclientdbusimplementation.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTCLIENTDBUSIMPLEMENTATION_H
+#define INTENTCLIENTDBUSIMPLEMENTATION_H
#include <QtCore/QPointer>
#include <QtAppManIntentClient/intentclientsysteminterface.h>
@@ -31,3 +32,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTCLIENTDBUSIMPLEMENTATION_H
diff --git a/src/application-main-lib/waylandapplicationmanagerwindowimpl.h b/src/application-main-lib/waylandapplicationmanagerwindowimpl.h
index eaf638b9..7e1ff478 100644
--- a/src/application-main-lib/waylandapplicationmanagerwindowimpl.h
+++ b/src/application-main-lib/waylandapplicationmanagerwindowimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WAYLANDAPPLICATIONMANAGERWINDOWIMPL_H
+#define WAYLANDAPPLICATIONMANAGERWINDOWIMPL_H
#include <memory>
@@ -89,3 +90,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // WAYLANDAPPLICATIONMANAGERWINDOWIMPL_H
diff --git a/src/application-main-lib/waylandqtamclientextension_p.h b/src/application-main-lib/waylandqtamclientextension_p.h
index 22f335c0..878f1e0e 100644
--- a/src/application-main-lib/waylandqtamclientextension_p.h
+++ b/src/application-main-lib/waylandqtamclientextension_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WAYLANDQTAMCLIENTEXTENSION_P_H
+#define WAYLANDQTAMCLIENTEXTENSION_P_H
#include <QVariantMap>
#include <QtWaylandClient/QWaylandClientExtensionTemplate>
@@ -55,3 +56,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // WAYLANDQTAMCLIENTEXTENSION_P_H
diff --git a/src/common-lib/architecture.h b/src/common-lib/architecture.h
index d596ed46..38d646a2 100644
--- a/src/common-lib/architecture.h
+++ b/src/common-lib/architecture.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef ARCHITECTURE_H
+#define ARCHITECTURE_H
#include <QtAppManCommon/global.h>
#include <QtCore/QVariantMap>
@@ -17,3 +18,5 @@ QString identify(const QString &fileName);
}
QT_END_NAMESPACE_AM
+
+#endif // ARCHITECTURE_H
diff --git a/src/common-lib/colorprint.h b/src/common-lib/colorprint.h
index 530dd252..0e316e4c 100644
--- a/src/common-lib/colorprint.h
+++ b/src/common-lib/colorprint.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef COLORPRINT_H
+#define COLORPRINT_H
#include <cstdio>
#include <QtCore/QByteArray>
@@ -94,3 +95,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // COLORPRINT_H
diff --git a/src/common-lib/configcache.h b/src/common-lib/configcache.h
index 10e58924..6beb392e 100644
--- a/src/common-lib/configcache.h
+++ b/src/common-lib/configcache.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONFIGCACHE_H
+#define CONFIGCACHE_H
#include <functional>
#include <array>
@@ -138,3 +139,5 @@ private:
Q_DECLARE_OPERATORS_FOR_FLAGS(AbstractConfigCache::Options)
QT_END_NAMESPACE_AM
+
+#endif // CONFIGCACHE_H
diff --git a/src/common-lib/configcache_p.h b/src/common-lib/configcache_p.h
index 5c656593..f2200de9 100644
--- a/src/common-lib/configcache_p.h
+++ b/src/common-lib/configcache_p.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONFIGCACHE_P_H
+#define CONFIGCACHE_P_H
#include "configcache.h"
@@ -49,3 +50,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // CONFIGCACHE_P_H
diff --git a/src/common-lib/console.h b/src/common-lib/console.h
index 19f1ed02..1f0e8624 100644
--- a/src/common-lib/console.h
+++ b/src/common-lib/console.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONSOLE_H
+#define CONSOLE_H
#include <QtAppManCommon/global.h>
@@ -21,3 +22,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // CONSOLE_H
diff --git a/src/common-lib/crashhandler.h b/src/common-lib/crashhandler.h
index 9f5dcb0f..f9b9c8bd 100644
--- a/src/common-lib/crashhandler.h
+++ b/src/common-lib/crashhandler.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CRASHHANDLER_H
+#define CRASHHANDLER_H
#include <QtAppManCommon/global.h>
#include <QtCore/QVariantMap>
@@ -20,3 +21,5 @@ void setQmlEngine(QQmlEngine *engine);
}
QT_END_NAMESPACE_AM
+
+#endif // CRASHHANDLER_H
diff --git a/src/common-lib/dbus-utilities.h b/src/common-lib/dbus-utilities.h
index 26ae46f3..bb5a9c4c 100644
--- a/src/common-lib/dbus-utilities.h
+++ b/src/common-lib/dbus-utilities.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUS_UTILITIES_H
+#define DBUS_UTILITIES_H
#include <QtAppManCommon/global.h>
#include <QtCore/QVariant>
@@ -27,3 +28,5 @@ QVariant convertFromDBusVariant(const QVariant &variant);
void registerDBusTypes();
QT_END_NAMESPACE_AM
+
+#endif // DBUS_UTILITIES_H
diff --git a/src/common-lib/error.h b/src/common-lib/error.h
index 9e4bf2f8..ef23da1e 100644
--- a/src/common-lib/error.h
+++ b/src/common-lib/error.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef ERROR_H
+#define ERROR_H
#include <QtCore/QDebug>
#include <QtAppManCommon/global.h>
@@ -45,3 +46,5 @@ inline QDebug &operator<<(QDebug &debug, Error error)
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::Error)
+
+#endif // ERROR_H
diff --git a/src/common-lib/exception.h b/src/common-lib/exception.h
index 4383c8d1..6118409a 100644
--- a/src/common-lib/exception.h
+++ b/src/common-lib/exception.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef EXCEPTION_H
+#define EXCEPTION_H
#include <QtCore/QString>
#include <QtCore/QDir>
@@ -92,3 +93,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // EXCEPTION_H
diff --git a/src/common-lib/filesystemmountwatcher.h b/src/common-lib/filesystemmountwatcher.h
index e4032347..b8b7e8e5 100644
--- a/src/common-lib/filesystemmountwatcher.h
+++ b/src/common-lib/filesystemmountwatcher.h
@@ -1,7 +1,8 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef FILESYSTEMMOUNTWATCHER_H
+#define FILESYSTEMMOUNTWATCHER_H
#include <QtCore/QObject>
#include <QtCore/QMultiMap>
@@ -35,3 +36,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // FILESYSTEMMOUNTWATCHER_H
diff --git a/src/common-lib/global.h b/src/common-lib/global.h
index b73f7df3..29da4b23 100644
--- a/src/common-lib/global.h
+++ b/src/common-lib/global.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef GLOBAL_H
+#define GLOBAL_H
#include <QtCore/qglobal.h>
#include <QtAppManCommon/qtappman_common-config.h>
@@ -23,3 +24,5 @@ QT_END_NAMESPACE_AM
# error "You are including headers from AppMan modules outside of a (custom) appman binary or launcher build. If you are aware of the implications of AppMan's modules being static libraries, you can #define AM_FORCE_COMPILING_AGAINST_MODULES"
# endif
#endif
+
+#endif // GLOBAL_H
diff --git a/src/common-lib/logging.h b/src/common-lib/logging.h
index 818984cb..f91dcf8a 100644
--- a/src/common-lib/logging.h
+++ b/src/common-lib/logging.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef LOGGING_H
+#define LOGGING_H
#include <QtAppManCommon/global.h>
#include <QtCore/QLoggingCategory>
@@ -74,3 +75,5 @@ template <typename... Ts> void am_trace(QDebug dbg, Ts &&... ts)
}
QT_END_NAMESPACE_AM
+
+#endif // LOGGING_H
diff --git a/src/common-lib/processtitle.h b/src/common-lib/processtitle.h
index 49505028..a5863307 100644
--- a/src/common-lib/processtitle.h
+++ b/src/common-lib/processtitle.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PROCESSTITLE_H
+#define PROCESSTITLE_H
#include <QtAppManCommon/global.h>
@@ -21,3 +22,5 @@ const char *title();
}
QT_END_NAMESPACE_AM
+
+#endif // PROCESSTITLE_H
diff --git a/src/common-lib/qml-utilities.h b/src/common-lib/qml-utilities.h
index d7ff6ccc..8e8651aa 100644
--- a/src/common-lib/qml-utilities.h
+++ b/src/common-lib/qml-utilities.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QML_UTILITIES_H
+#define QML_UTILITIES_H
#include <QtAppManCommon/global.h>
#include <QtQml/QQmlEngine>
@@ -23,3 +24,5 @@ QT_BEGIN_NAMESPACE_AM
void loadQmlDummyDataFiles(QQmlEngine *engine, const QString &directory);
QT_END_NAMESPACE_AM
+
+#endif // QML_UTILITIES_H
diff --git a/src/common-lib/qtyaml.h b/src/common-lib/qtyaml.h
index 3342ea60..d8c21a49 100644
--- a/src/common-lib/qtyaml.h
+++ b/src/common-lib/qtyaml.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QTYAML_H
+#define QTYAML_H
#include <functional>
#include <vector>
@@ -128,3 +129,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // QTYAML_H
diff --git a/src/common-lib/unixsignalhandler.h b/src/common-lib/unixsignalhandler.h
index 78c5f9bf..33e94e99 100644
--- a/src/common-lib/unixsignalhandler.h
+++ b/src/common-lib/unixsignalhandler.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef UNIXSIGNALHANDLER_H
+#define UNIXSIGNALHANDLER_H
#include <QtAppManCommon/global.h>
#include <QtCore/QObject>
@@ -77,3 +78,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // UNIXSIGNALHANDLER_H
diff --git a/src/common-lib/utilities.h b/src/common-lib/utilities.h
index db0bc7c4..28979cde 100644
--- a/src/common-lib/utilities.h
+++ b/src/common-lib/utilities.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef UTILITIES_H
+#define UTILITIES_H
#include <QtCore/QVector>
#include <QtCore/QPair>
@@ -130,3 +131,5 @@ void validateIdForFilesystemUsage(const QString &id) noexcept(false);
QJSEngine *getJSEngine(const QObject *obj);
QT_END_NAMESPACE_AM
+
+#endif // UTILITIES_H
diff --git a/src/crypto-lib/cryptography.h b/src/crypto-lib/cryptography.h
index 681754b1..17be18b0 100644
--- a/src/crypto-lib/cryptography.h
+++ b/src/crypto-lib/cryptography.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CRYPTOGRAPHY_H
+#define CRYPTOGRAPHY_H
#include <QtCore/QByteArray>
#include <QtCore/QString>
@@ -24,3 +25,5 @@ QString errorString(qint64 osCryptoError, const char *errorDescription = nullptr
}
QT_END_NAMESPACE_AM
+
+#endif // CRYPTOGRAPHY_H
diff --git a/src/crypto-lib/libcryptofunction.h b/src/crypto-lib/libcryptofunction.h
index 97156543..2ca99e5b 100644
--- a/src/crypto-lib/libcryptofunction.h
+++ b/src/crypto-lib/libcryptofunction.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef LIBCRYPTOFUNCTION_H
+#define LIBCRYPTOFUNCTION_H
#include <QtCore/qglobal.h>
#include <utility>
@@ -101,3 +102,5 @@ public:
}
QT_END_NAMESPACE_AM
+
+#endif // LIBCRYPTOFUNCTION_H
diff --git a/src/crypto-lib/signature.h b/src/crypto-lib/signature.h
index c43db00b..4f42ef48 100644
--- a/src/crypto-lib/signature.h
+++ b/src/crypto-lib/signature.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SIGNATURE_H
+#define SIGNATURE_H
#include <QtCore/QString>
#include <QtCore/QByteArray>
@@ -29,3 +30,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // SIGNATURE_H
diff --git a/src/crypto-lib/signature_p.h b/src/crypto-lib/signature_p.h
index aa09aa05..e0189548 100644
--- a/src/crypto-lib/signature_p.h
+++ b/src/crypto-lib/signature_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SIGNATURE_P_H
+#define SIGNATURE_P_H
#include <QtAppManCrypto/signature.h>
@@ -23,3 +24,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // SIGNATURE_P_H
diff --git a/src/dbus-lib/dbuscontextadaptor.h b/src/dbus-lib/dbuscontextadaptor.h
index 22979ebf..7ee2896d 100644
--- a/src/dbus-lib/dbuscontextadaptor.h
+++ b/src/dbus-lib/dbuscontextadaptor.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUSCONTEXTADAPTOR_H
+#define DBUSCONTEXTADAPTOR_H
#include <QtAppManCommon/global.h>
#include <QtCore/QObject>
@@ -54,3 +55,5 @@ do { \
QT_END_NAMESPACE_AM
+
+#endif // DBUSCONTEXTADAPTOR_H
diff --git a/src/dbus-lib/dbusdaemon.h b/src/dbus-lib/dbusdaemon.h
index 9dea4941..05e25a38 100644
--- a/src/dbus-lib/dbusdaemon.h
+++ b/src/dbus-lib/dbusdaemon.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUSDAEMON_H
+#define DBUSDAEMON_H
#include <QtAppManCommon/global.h>
#include <QtCore/QProcess>
@@ -20,3 +21,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // DBUSDAEMON_H
diff --git a/src/dbus-lib/dbuspolicy.h b/src/dbus-lib/dbuspolicy.h
index 277a9c10..b5d0c833 100644
--- a/src/dbus-lib/dbuspolicy.h
+++ b/src/dbus-lib/dbuspolicy.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DBUSPOLICY_H
+#define DBUSPOLICY_H
#include <functional>
@@ -45,3 +46,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // DBUSPOLICY_H
diff --git a/src/intent-client-lib/intentclient.h b/src/intent-client-lib/intentclient.h
index 32c2a615..e3cd8134 100644
--- a/src/intent-client-lib/intentclient.h
+++ b/src/intent-client-lib/intentclient.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTCLIENT_H
+#define INTENTCLIENT_H
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -82,3 +83,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTCLIENT_H
diff --git a/src/intent-client-lib/intentclientrequest.h b/src/intent-client-lib/intentclientrequest.h
index d27ae330..368a925a 100644
--- a/src/intent-client-lib/intentclientrequest.h
+++ b/src/intent-client-lib/intentclientrequest.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTCLIENTREQUEST_H
+#define INTENTCLIENTREQUEST_H
#include <QtCore/QObject>
#include <QtCore/QDir>
@@ -94,3 +95,5 @@ private:
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::IntentClientRequest *)
+
+#endif // INTENTCLIENTREQUEST_H
diff --git a/src/intent-client-lib/intentclientsysteminterface.h b/src/intent-client-lib/intentclientsysteminterface.h
index ded3beb3..860c68df 100644
--- a/src/intent-client-lib/intentclientsysteminterface.h
+++ b/src/intent-client-lib/intentclientsysteminterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTCLIENTSYSTEMINTERFACE_H
+#define INTENTCLIENTSYSTEMINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QPointer>
@@ -46,3 +47,5 @@ protected:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTCLIENTSYSTEMINTERFACE_H
diff --git a/src/intent-client-lib/intenthandler.h b/src/intent-client-lib/intenthandler.h
index beb84aa8..83c39f0e 100644
--- a/src/intent-client-lib/intenthandler.h
+++ b/src/intent-client-lib/intenthandler.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTHANDLER_H
+#define INTENTHANDLER_H
#include <QtCore/QObject>
#include <QtQml/QQmlParserStatus>
@@ -64,3 +65,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTHANDLER_H
diff --git a/src/intent-server-lib/intent.h b/src/intent-server-lib/intent.h
index 3f88a6f8..3602312e 100644
--- a/src/intent-server-lib/intent.h
+++ b/src/intent-server-lib/intent.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENT_H
+#define INTENT_H
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -94,3 +95,5 @@ private:
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::Intent *)
+
+#endif // INTENT_H
diff --git a/src/intent-server-lib/intentmodel.h b/src/intent-server-lib/intentmodel.h
index 2e2003e1..1d763083 100644
--- a/src/intent-server-lib/intentmodel.h
+++ b/src/intent-server-lib/intentmodel.h
@@ -2,7 +2,8 @@
// Copyright (C) 2019 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTMODEL_H
+#define INTENTMODEL_H
#include <QtCore/QSortFilterProxyModel>
#include <QtQml/QJSValue>
@@ -57,3 +58,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTMODEL_H
diff --git a/src/intent-server-lib/intentserver.h b/src/intent-server-lib/intentserver.h
index fc6f28fb..50c40b9b 100644
--- a/src/intent-server-lib/intentserver.h
+++ b/src/intent-server-lib/intentserver.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTSERVER_H
+#define INTENTSERVER_H
#include <QtCore/QAbstractListModel>
#include <QtCore/QVariantMap>
@@ -132,3 +133,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTSERVER_H
diff --git a/src/intent-server-lib/intentserverrequest.h b/src/intent-server-lib/intentserverrequest.h
index 7953b22b..01a62178 100644
--- a/src/intent-server-lib/intentserverrequest.h
+++ b/src/intent-server-lib/intentserverrequest.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTSERVERREQUEST_H
+#define INTENTSERVERREQUEST_H
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -72,3 +73,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTSERVERREQUEST_H
diff --git a/src/intent-server-lib/intentserversysteminterface.h b/src/intent-server-lib/intentserversysteminterface.h
index a3999975..e77981ec 100644
--- a/src/intent-server-lib/intentserversysteminterface.h
+++ b/src/intent-server-lib/intentserversysteminterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTSERVERSYSTEMINTERFACE_H
+#define INTENTSERVERSYSTEMINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QVariantMap>
@@ -51,3 +52,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTSERVERSYSTEMINTERFACE_H
diff --git a/src/main-lib/configuration.h b/src/main-lib/configuration.h
index 86540350..fda72158 100644
--- a/src/main-lib/configuration.h
+++ b/src/main-lib/configuration.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONFIGURATION_H
+#define CONFIGURATION_H
#include <QtAppManCommon/global.h>
#include <QtCore/QStringList>
@@ -130,3 +131,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // CONFIGURATION_H
diff --git a/src/main-lib/configuration_p.h b/src/main-lib/configuration_p.h
index 74aee035..6154bdb1 100644
--- a/src/main-lib/configuration_p.h
+++ b/src/main-lib/configuration_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONFIGURATION_P_H
+#define CONFIGURATION_P_H
#include <QtAppManCommon/global.h>
#include <QStringList>
@@ -129,3 +130,5 @@ struct ConfigurationData
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // CONFIGURATION_P_H
diff --git a/src/main-lib/main.h b/src/main-lib/main.h
index c30fc039..fc2e2672 100644
--- a/src/main-lib/main.h
+++ b/src/main-lib/main.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef MAIN_H
+#define MAIN_H
#include <functional>
@@ -157,3 +158,5 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Main::InitFlags)
QT_END_NAMESPACE_AM
+
+#endif // MAIN_H
diff --git a/src/main-lib/mainmacro.h b/src/main-lib/mainmacro.h
index 960fed4b..2b99fcba 100644
--- a/src/main-lib/mainmacro.h
+++ b/src/main-lib/mainmacro.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#pragma once
+#ifndef MAINMACRO_H
+#define MAINMACRO_H
#include <QtAppManMain/main.h>
#include <QtAppManMain/configuration.h>
@@ -29,3 +30,5 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) \
return 2; \
} \
}
+
+#endif // MAINMACRO_H
diff --git a/src/manager-lib/abstractcontainer.h b/src/manager-lib/abstractcontainer.h
index fe6cd575..909e0e00 100644
--- a/src/manager-lib/abstractcontainer.h
+++ b/src/manager-lib/abstractcontainer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef ABSTRACTCONTAINER_H
+#define ABSTRACTCONTAINER_H
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -110,3 +111,5 @@ protected:
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::AbstractContainer *)
+
+#endif // ABSTRACTCONTAINER_H
diff --git a/src/manager-lib/abstractruntime.h b/src/manager-lib/abstractruntime.h
index ebaffc76..4811e90a 100644
--- a/src/manager-lib/abstractruntime.h
+++ b/src/manager-lib/abstractruntime.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef ABSTRACTRUNTIME_H
+#define ABSTRACTRUNTIME_H
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -135,3 +136,5 @@ protected:
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::AbstractRuntime *)
+
+#endif // ABSTRACTRUNTIME_H
diff --git a/src/manager-lib/amnamespace.h b/src/manager-lib/amnamespace.h
index 22e2145b..722f68e3 100644
--- a/src/manager-lib/amnamespace.h
+++ b/src/manager-lib/amnamespace.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef AMNAMESPACE_H
+#define AMNAMESPACE_H
#include <QtCore/QObject>
#include <QtAppManCommon/global.h>
@@ -47,3 +48,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // AMNAMESPACE_H
diff --git a/src/manager-lib/application.h b/src/manager-lib/application.h
index 71b0025c..9c81e656 100644
--- a/src/manager-lib/application.h
+++ b/src/manager-lib/application.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATION_H
+#define APPLICATION_H
#include <QtCore/QObject>
#include <QtCore/QVariantMap>
@@ -150,3 +151,5 @@ QDebug operator<<(QDebug debug, const Application *app);
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(const QtAM::Application *)
+
+#endif // APPLICATION_H
diff --git a/src/manager-lib/applicationmanager.h b/src/manager-lib/applicationmanager.h
index 6d5a38e0..1467646f 100644
--- a/src/manager-lib/applicationmanager.h
+++ b/src/manager-lib/applicationmanager.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMANAGER_H
+#define APPLICATIONMANAGER_H
#include <QtCore/QAbstractListModel>
#include <QtCore/QStringList>
@@ -159,3 +160,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONMANAGER_H
diff --git a/src/manager-lib/applicationmanager_p.h b/src/manager-lib/applicationmanager_p.h
index 9f769cf1..e3818956 100644
--- a/src/manager-lib/applicationmanager_p.h
+++ b/src/manager-lib/applicationmanager_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMANAGER_P_H
+#define APPLICATIONMANAGER_P_H
#include <QStringList>
#include <QVariantMap>
@@ -48,3 +49,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // APPLICATIONMANAGER_P_H
diff --git a/src/manager-lib/applicationmodel.h b/src/manager-lib/applicationmodel.h
index 2a2eb021..751edf2f 100644
--- a/src/manager-lib/applicationmodel.h
+++ b/src/manager-lib/applicationmodel.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMODEL_H
+#define APPLICATIONMODEL_H
#include <QtCore/QSortFilterProxyModel>
#include <QtQml/QJSValue>
@@ -58,3 +59,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONMODEL_H
diff --git a/src/manager-lib/asynchronoustask.h b/src/manager-lib/asynchronoustask.h
index b8b8f611..2b9c69f1 100644
--- a/src/manager-lib/asynchronoustask.h
+++ b/src/manager-lib/asynchronoustask.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef ASYNCHRONOUSTASK_H
+#define ASYNCHRONOUSTASK_H
#include <QtCore/QThread>
#include <QtCore/QMutex>
@@ -71,3 +72,5 @@ protected:
QT_END_NAMESPACE_AM
+
+#endif // ASYNCHRONOUSTASK_H
diff --git a/src/manager-lib/containerfactory.h b/src/manager-lib/containerfactory.h
index 174db797..eee63102 100644
--- a/src/manager-lib/containerfactory.h
+++ b/src/manager-lib/containerfactory.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONTAINERFACTORY_H
+#define CONTAINERFACTORY_H
#include <QtCore/QMap>
#include <QtCore/QObject>
@@ -48,3 +49,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // CONTAINERFACTORY_H
diff --git a/src/manager-lib/debugwrapper.h b/src/manager-lib/debugwrapper.h
index 4a80bf3b..dfaec0ed 100644
--- a/src/manager-lib/debugwrapper.h
+++ b/src/manager-lib/debugwrapper.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DEBUGWRAPPER_H
+#define DEBUGWRAPPER_H
#include <QtAppManCommon/global.h>
@@ -23,3 +24,5 @@ QStringList substituteCommand(const QStringList &debugWrapperCommand, const QStr
}
QT_END_NAMESPACE_AM
+
+#endif // DEBUGWRAPPER_H
diff --git a/src/manager-lib/deinstallationtask.h b/src/manager-lib/deinstallationtask.h
index 3159a3d1..ebc87531 100644
--- a/src/manager-lib/deinstallationtask.h
+++ b/src/manager-lib/deinstallationtask.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef DEINSTALLATIONTASK_H
+#define DEINSTALLATIONTASK_H
#include <QtAppManManager/asynchronoustask.h>
@@ -34,3 +35,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // DEINSTALLATIONTASK_H
diff --git a/src/manager-lib/inprocesssurfaceitem.h b/src/manager-lib/inprocesssurfaceitem.h
index d672769e..b65edb68 100644
--- a/src/manager-lib/inprocesssurfaceitem.h
+++ b/src/manager-lib/inprocesssurfaceitem.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INPROCESSSURFACEITEM_H
+#define INPROCESSSURFACEITEM_H
#if 0
#pragma qt_sync_skip_header_check
@@ -83,3 +84,5 @@ QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::InProcessSurfaceItem*)
Q_DECLARE_METATYPE(QSharedPointer<QtAM::InProcessSurfaceItem>)
+
+#endif // INPROCESSSURFACEITEM_H
diff --git a/src/manager-lib/installationtask.h b/src/manager-lib/installationtask.h
index 4f7fb341..c6409e4e 100644
--- a/src/manager-lib/installationtask.h
+++ b/src/manager-lib/installationtask.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INSTALLATIONTASK_H
+#define INSTALLATIONTASK_H
#include <QtCore/QUrl>
#include <QtCore/QStringList>
@@ -76,3 +77,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INSTALLATIONTASK_H
diff --git a/src/manager-lib/intentaminterface.h b/src/manager-lib/intentaminterface.h
index c3eaae90..bb2b2a80 100644
--- a/src/manager-lib/intentaminterface.h
+++ b/src/manager-lib/intentaminterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INTENTAMINTERFACE_H
+#define INTENTAMINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QVector>
@@ -219,3 +220,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INTENTAMINTERFACE_H
diff --git a/src/manager-lib/nativeruntime.h b/src/manager-lib/nativeruntime.h
index 54a49362..8ad6f622 100644
--- a/src/manager-lib/nativeruntime.h
+++ b/src/manager-lib/nativeruntime.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef NATIVERUNTIME_H
+#define NATIVERUNTIME_H
#include <QtCore/qglobal.h>
@@ -108,3 +109,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // NATIVERUNTIME_H
diff --git a/src/manager-lib/notificationmanager.h b/src/manager-lib/notificationmanager.h
index 8f9cf5c8..8da50690 100644
--- a/src/manager-lib/notificationmanager.h
+++ b/src/manager-lib/notificationmanager.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef NOTIFICATIONMANAGER_H
+#define NOTIFICATIONMANAGER_H
#include <QtCore/QObject>
#include <QtCore/QAbstractListModel>
@@ -72,3 +73,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // NOTIFICATIONMANAGER_H
diff --git a/src/manager-lib/notificationmodel.h b/src/manager-lib/notificationmodel.h
index 48568403..5a6cc949 100644
--- a/src/manager-lib/notificationmodel.h
+++ b/src/manager-lib/notificationmodel.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef NOTIFICATIONMODEL_H
+#define NOTIFICATIONMODEL_H
#include <QtCore/QSortFilterProxyModel>
#include <QtQml/QJSValue>
@@ -56,3 +57,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // NOTIFICATIONMODEL_H
diff --git a/src/manager-lib/package.h b/src/manager-lib/package.h
index 16121d89..1926acce 100644
--- a/src/manager-lib/package.h
+++ b/src/manager-lib/package.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGE_H
+#define PACKAGE_H
#include <QtAppManCommon/global.h>
#include <QtAppManApplication/packageinfo.h>
@@ -118,3 +119,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGE_H
diff --git a/src/manager-lib/packagemanager.h b/src/manager-lib/packagemanager.h
index b2c7d987..741676f6 100644
--- a/src/manager-lib/packagemanager.h
+++ b/src/manager-lib/packagemanager.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEMANAGER_H
+#define PACKAGEMANAGER_H
#include <QtCore/QObject>
#include <QtCore/QAbstractListModel>
@@ -192,3 +193,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGEMANAGER_H
diff --git a/src/manager-lib/packagemanager_p.h b/src/manager-lib/packagemanager_p.h
index 8ee59468..44aabede 100644
--- a/src/manager-lib/packagemanager_p.h
+++ b/src/manager-lib/packagemanager_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEMANAGER_P_H
+#define PACKAGEMANAGER_P_H
#include <QMutex>
#include <QList>
@@ -60,3 +61,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // PACKAGEMANAGER_P_H
diff --git a/src/manager-lib/plugincontainer.h b/src/manager-lib/plugincontainer.h
index 09429697..7c36aad5 100644
--- a/src/manager-lib/plugincontainer.h
+++ b/src/manager-lib/plugincontainer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PLUGINCONTAINER_H
+#define PLUGINCONTAINER_H
#include <memory>
#include <QtAppManManager/abstractcontainer.h>
@@ -97,3 +98,5 @@ protected:
};
QT_END_NAMESPACE_AM
+
+#endif // PLUGINCONTAINER_H
diff --git a/src/manager-lib/processcontainer.h b/src/manager-lib/processcontainer.h
index 3a152e8d..03962f73 100644
--- a/src/manager-lib/processcontainer.h
+++ b/src/manager-lib/processcontainer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PROCESSCONTAINER_H
+#define PROCESSCONTAINER_H
#include <QtAppManManager/abstractcontainer.h>
#include <QtAppManManager/amnamespace.h>
@@ -89,3 +90,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PROCESSCONTAINER_H
diff --git a/src/manager-lib/processstatus.h b/src/manager-lib/processstatus.h
index 1f15f40c..39342edb 100644
--- a/src/manager-lib/processstatus.h
+++ b/src/manager-lib/processstatus.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PROCESSSTATUS_H
+#define PROCESSSTATUS_H
#include <QtCore/QAtomicInteger>
#include <QtCore/QObject>
@@ -85,3 +86,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PROCESSSTATUS_H
diff --git a/src/manager-lib/qmlinprocapplicationinterfaceimpl.h b/src/manager-lib/qmlinprocapplicationinterfaceimpl.h
index ea62215a..4cff6e5d 100644
--- a/src/manager-lib/qmlinprocapplicationinterfaceimpl.h
+++ b/src/manager-lib/qmlinprocapplicationinterfaceimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QMLINPROCAPPLICATIONINTERFACEIMPL_H
+#define QMLINPROCAPPLICATIONINTERFACEIMPL_H
#include <QtCore/QVector>
#include <QtCore/QPointer>
@@ -38,3 +39,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // QMLINPROCAPPLICATIONINTERFACEIMPL_H
diff --git a/src/manager-lib/qmlinprocapplicationmanagerwindowimpl.h b/src/manager-lib/qmlinprocapplicationmanagerwindowimpl.h
index 35985a47..90b5c735 100644
--- a/src/manager-lib/qmlinprocapplicationmanagerwindowimpl.h
+++ b/src/manager-lib/qmlinprocapplicationmanagerwindowimpl.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QMLINPROCAPPLICATIONMANAGERWINDOWIMPL_H
+#define QMLINPROCAPPLICATIONMANAGERWINDOWIMPL_H
#include <QtCore/QMetaObject>
#include <QtCore/QSharedPointer>
@@ -125,3 +126,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // QMLINPROCAPPLICATIONMANAGERWINDOWIMPL_H
diff --git a/src/manager-lib/qmlinprocnotificationimpl.h b/src/manager-lib/qmlinprocnotificationimpl.h
index 250e6a94..514d0efe 100644
--- a/src/manager-lib/qmlinprocnotificationimpl.h
+++ b/src/manager-lib/qmlinprocnotificationimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QMLINPROCNOTIFICATIONIMPL_H
+#define QMLINPROCNOTIFICATIONIMPL_H
#include <QtCore/QVector>
#include <QtCore/QPointer>
@@ -35,3 +36,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // QMLINPROCNOTIFICATIONIMPL_H
diff --git a/src/manager-lib/qmlinprocruntime.h b/src/manager-lib/qmlinprocruntime.h
index 9baf6be9..1a770168 100644
--- a/src/manager-lib/qmlinprocruntime.h
+++ b/src/manager-lib/qmlinprocruntime.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QMLINPROCRUNTIME_H
+#define QMLINPROCRUNTIME_H
#include <QtAppManManager/abstractruntime.h>
@@ -78,3 +79,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // QMLINPROCRUNTIME_H
diff --git a/src/manager-lib/quicklauncher.h b/src/manager-lib/quicklauncher.h
index f1e6203f..fd9487c7 100644
--- a/src/manager-lib/quicklauncher.h
+++ b/src/manager-lib/quicklauncher.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QUICKLAUNCHER_H
+#define QUICKLAUNCHER_H
#include <QtCore/QObject>
#include <QtCore/QPair>
@@ -76,3 +77,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // QUICKLAUNCHER_H
diff --git a/src/manager-lib/runtimefactory.h b/src/manager-lib/runtimefactory.h
index 3c594f50..c7700d9a 100644
--- a/src/manager-lib/runtimefactory.h
+++ b/src/manager-lib/runtimefactory.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef RUNTIMEFACTORY_H
+#define RUNTIMEFACTORY_H
#include <QtCore/QHash>
#include <QtCore/QObject>
@@ -53,3 +54,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // RUNTIMEFACTORY_H
diff --git a/src/manager-lib/scopeutilities.h b/src/manager-lib/scopeutilities.h
index e2bbba10..caf53c96 100644
--- a/src/manager-lib/scopeutilities.h
+++ b/src/manager-lib/scopeutilities.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SCOPEUTILITIES_H
+#define SCOPEUTILITIES_H
#include <QtCore/QString>
#include <QtCore/QDir>
@@ -67,3 +68,5 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(ScopedRenamer::Modes)
QT_END_NAMESPACE_AM
+
+#endif // SCOPEUTILITIES_H
diff --git a/src/manager-lib/sudo.h b/src/manager-lib/sudo.h
index c13aebf1..d2814233 100644
--- a/src/manager-lib/sudo.h
+++ b/src/manager-lib/sudo.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SUDO_H
+#define SUDO_H
#include <QtCore/QString>
#include <QtCore/QByteArray>
@@ -118,3 +119,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // SUDO_H
diff --git a/src/monitor-lib/processreader.h b/src/monitor-lib/processreader.h
index 12b693d3..1481c256 100644
--- a/src/monitor-lib/processreader.h
+++ b/src/monitor-lib/processreader.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PROCESSREADER_H
+#define PROCESSREADER_H
#include <QtCore/QMutex>
#include <QtCore/QElapsedTimer>
@@ -67,3 +68,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PROCESSREADER_H
diff --git a/src/monitor-lib/sysfsreader.h b/src/monitor-lib/sysfsreader.h
index 78234069..fae3e126 100644
--- a/src/monitor-lib/sysfsreader.h
+++ b/src/monitor-lib/sysfsreader.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SYSFSREADER_H
+#define SYSFSREADER_H
#include <QtCore/QByteArray>
#include <QtCore/QFile>
@@ -29,3 +30,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // SYSFSREADER_H
diff --git a/src/monitor-lib/systemreader.h b/src/monitor-lib/systemreader.h
index 4f09b9d0..d4743307 100644
--- a/src/monitor-lib/systemreader.h
+++ b/src/monitor-lib/systemreader.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SYSTEMREADER_H
+#define SYSTEMREADER_H
#include <QtCore/QByteArray>
#include <QtCore/QPair>
@@ -178,3 +179,5 @@ extern QString g_systemRootDir;
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // SYSTEMREADER_H
diff --git a/src/package-lib/packagecreator.h b/src/package-lib/packagecreator.h
index 19d0b500..914f9e73 100644
--- a/src/package-lib/packagecreator.h
+++ b/src/package-lib/packagecreator.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGECREATOR_H
+#define PACKAGECREATOR_H
#include <QtCore/QObject>
@@ -54,3 +55,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGECREATOR_H
diff --git a/src/package-lib/packagecreator_p.h b/src/package-lib/packagecreator_p.h
index de4b5130..153b36cc 100644
--- a/src/package-lib/packagecreator_p.h
+++ b/src/package-lib/packagecreator_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGECREATOR_P_H
+#define PACKAGECREATOR_P_H
#include <QtAppManPackage/packagecreator.h>
@@ -41,3 +42,5 @@ private:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // PACKAGECREATOR_P_H
diff --git a/src/package-lib/packageextractor.h b/src/package-lib/packageextractor.h
index cad7f969..27b0624b 100644
--- a/src/package-lib/packageextractor.h
+++ b/src/package-lib/packageextractor.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEEXTRACTOR_H
+#define PACKAGEEXTRACTOR_H
#include <QtCore/QObject>
@@ -55,3 +56,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // PACKAGEEXTRACTOR_H
diff --git a/src/package-lib/packageextractor_p.h b/src/package-lib/packageextractor_p.h
index d5c48548..8710bc2f 100644
--- a/src/package-lib/packageextractor_p.h
+++ b/src/package-lib/packageextractor_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEEXTRACTOR_P_H
+#define PACKAGEEXTRACTOR_P_H
#include <QObject>
#include <QNetworkReply>
@@ -67,3 +68,5 @@ private:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // PACKAGEEXTRACTOR_P_H
diff --git a/src/package-lib/packageutilities.h b/src/package-lib/packageutilities.h
index 0b7f6ab6..4767c3f3 100644
--- a/src/package-lib/packageutilities.h
+++ b/src/package-lib/packageutilities.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEUTILITIES_H
+#define PACKAGEUTILITIES_H
#include <QtAppManCommon/global.h>
@@ -19,3 +20,5 @@ bool checkCorrectLocale();
}
QT_END_NAMESPACE_AM
+
+#endif // PACKAGEUTILITIES_H
diff --git a/src/package-lib/packageutilities_p.h b/src/package-lib/packageutilities_p.h
index e8a02fb9..6cfbd0bf 100644
--- a/src/package-lib/packageutilities_p.h
+++ b/src/package-lib/packageutilities_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef PACKAGEUTILITIES_P_H
+#define PACKAGEUTILITIES_P_H
#include <QtAppManCommon/global.h>
#include <QtAppManCommon/exception.h>
@@ -39,3 +40,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // PACKAGEUTILITIES_P_H
diff --git a/src/plugin-interfaces/containerinterface.h b/src/plugin-interfaces/containerinterface.h
index 828e8432..3eb90f4b 100644
--- a/src/plugin-interfaces/containerinterface.h
+++ b/src/plugin-interfaces/containerinterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CONTAINERINTERFACE_H
+#define CONTAINERINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QtPlugin>
@@ -123,3 +124,5 @@ public:
QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(ContainerManagerInterface, AM_ContainerManagerInterface_iid)
QT_END_NAMESPACE
+
+#endif // CONTAINERINTERFACE_H
diff --git a/src/plugin-interfaces/startupinterface.h b/src/plugin-interfaces/startupinterface.h
index 0961b072..bdb15e29 100644
--- a/src/plugin-interfaces/startupinterface.h
+++ b/src/plugin-interfaces/startupinterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef STARTUPINTERFACE_H
+#define STARTUPINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QtPlugin>
@@ -36,3 +37,5 @@ public:
QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(StartupInterface, AM_StartupInterface_iid)
QT_END_NAMESPACE
+
+#endif // STARTUPINTERFACE_H
diff --git a/src/plugins/bubblewrap-container-plugin/bubblewrapcontainer.h b/src/plugins/bubblewrap-container-plugin/bubblewrapcontainer.h
index dd419f4f..790ccc32 100644
--- a/src/plugins/bubblewrap-container-plugin/bubblewrapcontainer.h
+++ b/src/plugins/bubblewrap-container-plugin/bubblewrapcontainer.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-#pragma once
+#ifndef BUBBLEWRAPCONTAINER_H
+#define BUBBLEWRAPCONTAINER_H
#include <QVariantMap>
#include <QFileInfo>
@@ -116,3 +117,5 @@ private:
QString m_bwrapPath;
QString m_networkSetupScript;
};
+
+#endif // BUBBLEWRAPCONTAINER_H
diff --git a/src/qml/qtapplicationmanager_application_p.h b/src/qml/qtapplicationmanager_application_p.h
index cec78d6a..f6539494 100644
--- a/src/qml/qtapplicationmanager_application_p.h
+++ b/src/qml/qtapplicationmanager_application_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QTAPPLICATIONMANAGER_APPLICATION_P_H
+#define QTAPPLICATIONMANAGER_APPLICATION_P_H
#include <QtQml/QQmlEngine>
#include <QtAppManIntentClient/intenthandler.h>
#include <QtAppManSharedMain/applicationmanagerwindow.h>
@@ -37,3 +38,5 @@ class ForeignApplicationInterface
QT_END_NAMESPACE
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // QTAPPLICATIONMANAGER_APPLICATION_P_H
diff --git a/src/qml/qtapplicationmanager_p.h b/src/qml/qtapplicationmanager_p.h
index aabc53db..038b6bba 100644
--- a/src/qml/qtapplicationmanager_p.h
+++ b/src/qml/qtapplicationmanager_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QTAPPLICATIONMANAGER_P_H
+#define QTAPPLICATIONMANAGER_P_H
#include <QtQml/QQmlEngine>
#include <QtAppManIntentClient/intentclient.h>
#include <QtAppManIntentClient/intenthandler.h>
@@ -116,3 +117,5 @@ class ForeignMonitorModel
QT_END_NAMESPACE
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // QTAPPLICATIONMANAGER_P_H
diff --git a/src/qml/qtapplicationmanager_systemui_p.h b/src/qml/qtapplicationmanager_systemui_p.h
index 5a1e587d..20dd8121 100644
--- a/src/qml/qtapplicationmanager_systemui_p.h
+++ b/src/qml/qtapplicationmanager_systemui_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QTAPPLICATIONMANAGER_SYSTEMUI_P_H
+#define QTAPPLICATIONMANAGER_SYSTEMUI_P_H
#include <QtQml/QQmlEngine>
#include <QtAppManIntentServer/intent.h>
#include <QtAppManIntentServer/intentmodel.h>
@@ -213,3 +214,5 @@ class ForeignNamespaceAm
QT_END_NAMESPACE
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // QTAPPLICATIONMANAGER_SYSTEMUI_P_H
diff --git a/src/shared-main-lib/applicationinterface.h b/src/shared-main-lib/applicationinterface.h
index 7af78a4f..ca23796f 100644
--- a/src/shared-main-lib/applicationinterface.h
+++ b/src/shared-main-lib/applicationinterface.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONINTERFACE_H
+#define APPLICATIONINTERFACE_H
#include <QtCore/QObject>
#include <QtCore/QUrl>
@@ -67,3 +68,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONINTERFACE_H
diff --git a/src/shared-main-lib/applicationinterfaceimpl.h b/src/shared-main-lib/applicationinterfaceimpl.h
index cafeebcc..3fbabf09 100644
--- a/src/shared-main-lib/applicationinterfaceimpl.h
+++ b/src/shared-main-lib/applicationinterfaceimpl.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONINTERFACEIMPL_H
+#define APPLICATIONINTERFACEIMPL_H
#include <QtCore/QUrl>
#include <QtCore/QVariantMap>
@@ -36,3 +37,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONINTERFACEIMPL_H
diff --git a/src/shared-main-lib/applicationmanagerwindow.h b/src/shared-main-lib/applicationmanagerwindow.h
index 5cec0398..ba442371 100644
--- a/src/shared-main-lib/applicationmanagerwindow.h
+++ b/src/shared-main-lib/applicationmanagerwindow.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMANAGERWINDOW_H
+#define APPLICATIONMANAGERWINDOW_H
#include <memory>
@@ -197,3 +198,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONMANAGERWINDOW_H
diff --git a/src/shared-main-lib/applicationmanagerwindowimpl.h b/src/shared-main-lib/applicationmanagerwindowimpl.h
index e3345843..14800b09 100644
--- a/src/shared-main-lib/applicationmanagerwindowimpl.h
+++ b/src/shared-main-lib/applicationmanagerwindowimpl.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef APPLICATIONMANAGERWINDOWIMPL_H
+#define APPLICATIONMANAGERWINDOWIMPL_H
#include <functional>
#include <QtGui/QColor>
@@ -118,3 +119,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // APPLICATIONMANAGERWINDOWIMPL_H
diff --git a/src/shared-main-lib/cpustatus.h b/src/shared-main-lib/cpustatus.h
index f6bdf991..dbd69e5e 100644
--- a/src/shared-main-lib/cpustatus.h
+++ b/src/shared-main-lib/cpustatus.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef CPUSTATUS_H
+#define CPUSTATUS_H
#include <memory>
@@ -42,3 +43,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // CPUSTATUS_H
diff --git a/src/shared-main-lib/frametimer.h b/src/shared-main-lib/frametimer.h
index 0604d4e0..02360d76 100644
--- a/src/shared-main-lib/frametimer.h
+++ b/src/shared-main-lib/frametimer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef FRAMETIMER_H
+#define FRAMETIMER_H
#include <QtCore/QElapsedTimer>
#include <QtCore/QObject>
@@ -91,3 +92,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // FRAMETIMER_H
diff --git a/src/shared-main-lib/frametimerimpl.h b/src/shared-main-lib/frametimerimpl.h
index c79b88c5..d4cb2cea 100644
--- a/src/shared-main-lib/frametimerimpl.h
+++ b/src/shared-main-lib/frametimerimpl.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef FRAMETIMERIMPL_H
+#define FRAMETIMERIMPL_H
#include <functional>
#include <QtAppManCommon/global.h>
@@ -37,3 +38,5 @@ protected:
};
QT_END_NAMESPACE_AM
+
+#endif // FRAMETIMERIMPL_H
diff --git a/src/shared-main-lib/gpustatus.h b/src/shared-main-lib/gpustatus.h
index 254229c7..7c551f24 100644
--- a/src/shared-main-lib/gpustatus.h
+++ b/src/shared-main-lib/gpustatus.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef GPUSTATUS_H
+#define GPUSTATUS_H
#include <memory>
@@ -40,3 +41,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // GPUSTATUS_H
diff --git a/src/shared-main-lib/iostatus.h b/src/shared-main-lib/iostatus.h
index 1c930ff9..62ca279e 100644
--- a/src/shared-main-lib/iostatus.h
+++ b/src/shared-main-lib/iostatus.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef IOSTATUS_H
+#define IOSTATUS_H
#include <QtAppManCommon/global.h>
@@ -51,3 +52,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // IOSTATUS_H
diff --git a/src/shared-main-lib/memorystatus.h b/src/shared-main-lib/memorystatus.h
index 6e0cb656..07a25d91 100644
--- a/src/shared-main-lib/memorystatus.h
+++ b/src/shared-main-lib/memorystatus.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef MEMORYSTATUS_H
+#define MEMORYSTATUS_H
#include <memory>
@@ -42,3 +43,5 @@ private:
QT_END_NAMESPACE_AM
+
+#endif // MEMORYSTATUS_H
diff --git a/src/shared-main-lib/monitormodel.h b/src/shared-main-lib/monitormodel.h
index 05b16ad3..c239bb07 100644
--- a/src/shared-main-lib/monitormodel.h
+++ b/src/shared-main-lib/monitormodel.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef MONITORMODEL_H
+#define MONITORMODEL_H
#include <QtCore/QAbstractListModel>
#include <QtAppManCommon/global.h>
@@ -95,3 +96,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // MONITORMODEL_H
diff --git a/src/shared-main-lib/notification.h b/src/shared-main-lib/notification.h
index 1ba82cae..79f70696 100644
--- a/src/shared-main-lib/notification.h
+++ b/src/shared-main-lib/notification.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef NOTIFICATION_H
+#define NOTIFICATION_H
#include <QtCore/QObject>
#include <QtCore/QUrl>
@@ -156,3 +157,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // NOTIFICATION_H
diff --git a/src/shared-main-lib/notificationimpl.h b/src/shared-main-lib/notificationimpl.h
index 688fc8c3..648e7c1d 100644
--- a/src/shared-main-lib/notificationimpl.h
+++ b/src/shared-main-lib/notificationimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef NOTIFICATIONIMPL_H
+#define NOTIFICATIONIMPL_H
#include <QtCore/QObject>
#include <QtCore/QUrl>
@@ -39,3 +40,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // NOTIFICATIONIMPL_H
diff --git a/src/shared-main-lib/qmllogger.h b/src/shared-main-lib/qmllogger.h
index 372c2c1b..d7770a0e 100644
--- a/src/shared-main-lib/qmllogger.h
+++ b/src/shared-main-lib/qmllogger.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef QMLLOGGER_H
+#define QMLLOGGER_H
#include <QtAppManCommon/global.h>
#include <QtCore/QObject>
@@ -23,3 +24,5 @@ private slots:
};
QT_END_NAMESPACE_AM
+
+#endif // QMLLOGGER_H
diff --git a/src/shared-main-lib/sharedmain.h b/src/shared-main-lib/sharedmain.h
index c0622f7a..2cb42fb5 100644
--- a/src/shared-main-lib/sharedmain.h
+++ b/src/shared-main-lib/sharedmain.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SHAREDMAIN_H
+#define SHAREDMAIN_H
#include <QtAppManCommon/global.h>
#include <QtCore/QVariantMap>
@@ -37,3 +38,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // SHAREDMAIN_H
diff --git a/src/shared-main-lib/startuptimer.h b/src/shared-main-lib/startuptimer.h
index 557eb2e8..0d5db69e 100644
--- a/src/shared-main-lib/startuptimer.h
+++ b/src/shared-main-lib/startuptimer.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef STARTUPTIMER_H
+#define STARTUPTIMER_H
#include <cstdio>
#include <QtCore/QObject>
@@ -64,3 +65,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // STARTUPTIMER_H
diff --git a/src/tools/controller/interrupthandler.h b/src/tools/controller/interrupthandler.h
index c8963dec..f01e559c 100644
--- a/src/tools/controller/interrupthandler.h
+++ b/src/tools/controller/interrupthandler.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef INTERRUPTHANDLER_H
+#define INTERRUPTHANDLER_H
#include <functional>
#include <QtAppManCommon/global.h>
@@ -17,3 +18,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // INTERRUPTHANDLER_H
diff --git a/src/tools/launcher-qml/launcher-qml_p.h b/src/tools/launcher-qml/launcher-qml_p.h
index 095bc3d3..0dd5f495 100644
--- a/src/tools/launcher-qml/launcher-qml_p.h
+++ b/src/tools/launcher-qml/launcher-qml_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef LAUNCHER_QML_P_H
+#define LAUNCHER_QML_P_H
#include <QObject>
#include <QVariantMap>
@@ -53,3 +54,5 @@ private slots:
};
QT_END_NAMESPACE_AM
+
+#endif // LAUNCHER_QML_P_H
diff --git a/src/tools/package-server/package-server.h b/src/tools/package-server/package-server.h
index 357d3de3..e68c8ef1 100644
--- a/src/tools/package-server/package-server.h
+++ b/src/tools/package-server/package-server.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PACKAGE_SERVER_H
+#define PACKAGE_SERVER_H
#include <QtAppManCommon/colorprint.h>
@@ -11,3 +12,5 @@ extern ColorPrint colorOut();
extern ColorPrint colorErr();
QT_END_NAMESPACE_AM
+
+#endif // PACKAGE_SERVER_H
diff --git a/src/tools/package-server/psconfiguration.h b/src/tools/package-server/psconfiguration.h
index 5611cfce..8497f245 100644
--- a/src/tools/package-server/psconfiguration.h
+++ b/src/tools/package-server/psconfiguration.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PSCONFIGURATION_H
+#define PSCONFIGURATION_H
#include <QStringList>
#include <QUrl>
@@ -36,3 +37,5 @@ private:
QString storeSignCertificateFile;
QStringList developerVerificationCaCertificateFiles;
};
+
+#endif // PSCONFIGURATION_H
diff --git a/src/tools/package-server/pshttpinterface.h b/src/tools/package-server/pshttpinterface.h
index f71f4446..da05b4c7 100644
--- a/src/tools/package-server/pshttpinterface.h
+++ b/src/tools/package-server/pshttpinterface.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PSHTTPINTERFACE_H
+#define PSHTTPINTERFACE_H
#include <QObject>
#include <QString>
@@ -27,3 +28,5 @@ public:
private:
PSHttpInterfacePrivate *d;
};
+
+#endif // PSHTTPINTERFACE_H
diff --git a/src/tools/package-server/pshttpinterface_p.h b/src/tools/package-server/pshttpinterface_p.h
index 96fb033b..9d52019c 100644
--- a/src/tools/package-server/pshttpinterface_p.h
+++ b/src/tools/package-server/pshttpinterface_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PSHTTPINTERFACE_P_H
+#define PSHTTPINTERFACE_P_H
#include <QString>
#include <QHttpServer>
@@ -15,3 +16,5 @@ public:
QHttpServer *server = nullptr;
QString listenAddress;
};
+
+#endif // PSHTTPINTERFACE_P_H
diff --git a/src/tools/package-server/pspackages.h b/src/tools/package-server/pspackages.h
index 5c5af12d..378ab12e 100644
--- a/src/tools/package-server/pspackages.h
+++ b/src/tools/package-server/pspackages.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PSPACKAGES_H
+#define PSPACKAGES_H
#include <memory>
#include <QObject>
@@ -55,3 +56,5 @@ public:
private:
std::unique_ptr<PSPackagesPrivate> d;
};
+
+#endif // PSPACKAGES_H
diff --git a/src/tools/package-server/pspackages_p.h b/src/tools/package-server/pspackages_p.h
index dbafbaed..9e68ffcb 100644
--- a/src/tools/package-server/pspackages_p.h
+++ b/src/tools/package-server/pspackages_p.h
@@ -1,7 +1,8 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PSPACKAGES_P_H
+#define PSPACKAGES_P_H
#include <memory>
#include <QMap>
@@ -26,3 +27,5 @@ public:
std::unique_ptr<QLockFile> lockFile;
QByteArray lockFilePath; // for the signal handler
};
+
+#endif // PSPACKAGES_P_H
diff --git a/src/tools/packager/packagingjob.h b/src/tools/packager/packagingjob.h
index d7536fa4..0edc1ace 100644
--- a/src/tools/packager/packagingjob.h
+++ b/src/tools/packager/packagingjob.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef PACKAGINGJOB_H
+#define PACKAGINGJOB_H
#include <QtAppManCommon/global.h>
#include <QByteArray>
@@ -60,3 +61,5 @@ private:
QVariantMap m_extraMetaData;
QVariantMap m_extraSignedMetaData;
};
+
+#endif // PACKAGINGJOB_H
diff --git a/src/tools/testrunner/amtest.h b/src/tools/testrunner/amtest.h
index a138e92b..7333fedd 100644
--- a/src/tools/testrunner/amtest.h
+++ b/src/tools/testrunner/amtest.h
@@ -2,7 +2,8 @@
// Copyright (C) 2020 Luxoft Sweden AB
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef AMTEST_H
+#define AMTEST_H
#include <QObject>
#include <QVariantMap>
@@ -46,3 +47,5 @@ Q_SIGNALS:
};
QT_END_NAMESPACE_AM
+
+#endif // AMTEST_H
diff --git a/src/tools/testrunner/testrunner.h b/src/tools/testrunner/testrunner.h
index 2a09bf01..65c1e7cc 100644
--- a/src/tools/testrunner/testrunner.h
+++ b/src/tools/testrunner/testrunner.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef TESTRUNNER_H
+#define TESTRUNNER_H
#include <QStringList>
#include <QtAppManCommon/global.h>
@@ -22,3 +23,5 @@ public:
};
QT_END_NAMESPACE_AM
+
+#endif // TESTRUNNER_H
diff --git a/src/window-lib/inprocesswindow.h b/src/window-lib/inprocesswindow.h
index f63914e0..29ec094b 100644
--- a/src/window-lib/inprocesswindow.h
+++ b/src/window-lib/inprocesswindow.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef INPROCESSWINDOW_H
+#define INPROCESSWINDOW_H
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
@@ -52,3 +53,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // INPROCESSWINDOW_H
diff --git a/src/window-lib/systemframetimerimpl.h b/src/window-lib/systemframetimerimpl.h
index 4cfe507b..e2193312 100644
--- a/src/window-lib/systemframetimerimpl.h
+++ b/src/window-lib/systemframetimerimpl.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef SYSTEMFRAMETIMERIMPL_H
+#define SYSTEMFRAMETIMERIMPL_H
#include <QtCore/QPointer>
#include <QtAppManSharedMain/frametimerimpl.h>
@@ -30,3 +31,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // SYSTEMFRAMETIMERIMPL_H
diff --git a/src/window-lib/waylandcompositor.h b/src/window-lib/waylandcompositor.h
index 68c0b73c..9711384d 100644
--- a/src/window-lib/waylandcompositor.h
+++ b/src/window-lib/waylandcompositor.h
@@ -4,7 +4,8 @@
// Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WAYLANDCOMPOSITOR_H
+#define WAYLANDCOMPOSITOR_H
#include <QtAppManCommon/global.h>
@@ -123,3 +124,5 @@ protected:
QT_END_NAMESPACE_AM
#endif // QT_CONFIG(am_multi_process)
+
+#endif // WAYLANDCOMPOSITOR_H
diff --git a/src/window-lib/waylandqtamserverextension_p.h b/src/window-lib/waylandqtamserverextension_p.h
index 128c3f5b..334ef987 100644
--- a/src/window-lib/waylandqtamserverextension_p.h
+++ b/src/window-lib/waylandqtamserverextension_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WAYLANDQTAMSERVEREXTENSION_P_H
+#define WAYLANDQTAMSERVEREXTENSION_P_H
#include <QtWaylandCompositor/QWaylandCompositorExtensionTemplate>
#include <QtCore/QVariant>
@@ -49,3 +50,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // WAYLANDQTAMSERVEREXTENSION_P_H
diff --git a/src/window-lib/waylandwindow.h b/src/window-lib/waylandwindow.h
index c8f69b83..f44e12de 100644
--- a/src/window-lib/waylandwindow.h
+++ b/src/window-lib/waylandwindow.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WAYLANDWINDOW_H
+#define WAYLANDWINDOW_H
#include <QtAppManWindow/window.h>
@@ -72,3 +73,5 @@ private:
QT_END_NAMESPACE_AM
#endif // QT_CONFIG(am_multi_process)
+
+#endif // WAYLANDWINDOW_H
diff --git a/src/window-lib/window.h b/src/window-lib/window.h
index 27c50c36..36c3ad4d 100644
--- a/src/window-lib/window.h
+++ b/src/window-lib/window.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WINDOW_H
+#define WINDOW_H
#include <QtCore/QObject>
#include <QtCore/QVariantMap>
@@ -90,3 +91,5 @@ protected:
QT_END_NAMESPACE_AM
Q_DECLARE_METATYPE(QtAM::Window*)
+
+#endif // WINDOW_H
diff --git a/src/window-lib/windowitem.h b/src/window-lib/windowitem.h
index aca03db1..3007b22c 100644
--- a/src/window-lib/windowitem.h
+++ b/src/window-lib/windowitem.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WINDOWITEM_H
+#define WINDOWITEM_H
#if 0
#pragma qt_sync_skip_header_check
@@ -151,3 +152,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // WINDOWITEM_H
diff --git a/src/window-lib/windowmanager.h b/src/window-lib/windowmanager.h
index eb93699c..c1366cdc 100644
--- a/src/window-lib/windowmanager.h
+++ b/src/window-lib/windowmanager.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WINDOWMANAGER_H
+#define WINDOWMANAGER_H
#include <functional>
#include <QtCore/QAbstractListModel>
@@ -138,3 +139,5 @@ private:
};
QT_END_NAMESPACE_AM
+
+#endif // WINDOWMANAGER_H
diff --git a/src/window-lib/windowmanager_p.h b/src/window-lib/windowmanager_p.h
index ddf10778..6cc03e7b 100644
--- a/src/window-lib/windowmanager_p.h
+++ b/src/window-lib/windowmanager_p.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-#pragma once
+#ifndef WINDOWMANAGER_P_H
+#define WINDOWMANAGER_P_H
#include <QVector>
#include <QMap>
@@ -50,3 +51,5 @@ public:
QT_END_NAMESPACE_AM
// We mean it. Dummy comment since syncqt needs this also for completely private Qt modules.
+
+#endif // WINDOWMANAGER_P_H
diff --git a/tests/auto/error-checking.h b/tests/auto/error-checking.h
index edae213e..d01fda7c 100644
--- a/tests/auto/error-checking.h
+++ b/tests/auto/error-checking.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef ERROR_CHECKING_H
+#define ERROR_CHECKING_H
#include <QTest>
@@ -18,3 +19,5 @@
QCOMPARE(_actual_errstr, _expected_errstr); \
} \
} while (false)
+
+#endif // ERROR_CHECKING_H
diff --git a/tests/auto/qml/crash/qmlcrash/qmlcrash.h b/tests/auto/qml/crash/qmlcrash/qmlcrash.h
index 876840a9..3b894265 100644
--- a/tests/auto/qml/crash/qmlcrash/qmlcrash.h
+++ b/tests/auto/qml/crash/qmlcrash/qmlcrash.h
@@ -3,7 +3,8 @@
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-#pragma once
+#ifndef QMLCRASH_H
+#define QMLCRASH_H
#include <QQmlExtensionPlugin>
#include <QThread>
@@ -48,3 +49,5 @@ private:
void run() override;
QmlCrash *m_qmlCrash;
};
+
+#endif // QMLCRASH_H