forked from qt-creator/qt-creator
AppMan: Inline plugin class definition in .cpp
Change-Id: Ib5ccfec0726497421d24e9892de822d7259bcd7a Reviewed-by: Dominik Holland <dominik.holland@qt.io>
This commit is contained in:
@@ -15,7 +15,7 @@ add_qtc_plugin(QtApplicationManagerIntegration
|
||||
appmanagerremoteinstallpackagestep.cpp appmanagerremoteinstallpackagestep.h
|
||||
appmanagermakeinstallstep.cpp appmanagermakeinstallstep.h
|
||||
appmanagercmakepackagestep.cpp appmanagercmakepackagestep.h
|
||||
appmanagerplugin.cpp appmanagerplugin.h
|
||||
appmanagerplugin.cpp
|
||||
appmanagerrunconfiguration.cpp appmanagerrunconfiguration.h
|
||||
appmanagerruncontrol.cpp appmanagerruncontrol.h
|
||||
appmanagerstringaspect.cpp appmanagerstringaspect.h
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "appmanagerplugin.h"
|
||||
|
||||
#include "appmanagercreatepackagestep.h"
|
||||
#include "appmanagerdeployconfigurationautoswitcher.h"
|
||||
#include "appmanagerdeployconfigurationfactory.h"
|
||||
@@ -16,12 +14,17 @@
|
||||
#include "appmanagerrunconfiguration.h"
|
||||
#include "appmanagerruncontrol.h"
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
namespace AppManager::Internal {
|
||||
|
||||
AppManagerPlugin::~AppManagerPlugin() = default;
|
||||
|
||||
void AppManagerPlugin::initialize()
|
||||
class AppManagerPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "QtApplicationManagerIntegration.json")
|
||||
|
||||
void initialize() final
|
||||
{
|
||||
setupAppManagerCMakePackageStep();
|
||||
setupAppManagerMakeInstallStep();
|
||||
setupAppManagerCreatePackageStep();
|
||||
@@ -37,6 +40,9 @@ void AppManagerPlugin::initialize()
|
||||
setupAppManagerRunWorker();
|
||||
setupAppManagerDebugWorker();
|
||||
setupAppManagerQmlToolingWorker();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
} // AppManager::Internal
|
||||
|
||||
#include "appmanagerplugin.moc"
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
// Copyright (C) 2019 Luxoft Sweden AB
|
||||
// Copyright (C) 2018 Pelagicore AG
|
||||
// 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
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
namespace AppManager::Internal {
|
||||
|
||||
class AppManagerPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "QtApplicationManagerIntegration.json")
|
||||
|
||||
public:
|
||||
~AppManagerPlugin() final;
|
||||
|
||||
private:
|
||||
void initialize() final;
|
||||
|
||||
class AppManagerPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // AppManager::Internal
|
||||
@@ -39,7 +39,6 @@ QtcPlugin {
|
||||
"appmanagermakeinstallstep.cpp",
|
||||
"appmanagermakeinstallstep.h",
|
||||
"appmanagerplugin.cpp",
|
||||
"appmanagerplugin.h",
|
||||
"appmanagerremoteinstallpackagestep.cpp",
|
||||
"appmanagerremoteinstallpackagestep.h",
|
||||
"appmanagerrunconfiguration.cpp",
|
||||
|
||||
Reference in New Issue
Block a user