forked from qt-creator/qt-creator
Ios: Hide plugin class in .cpp
Change-Id: I10577ed877c6038ffd714a1a414ed8ba7ec801ee Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -11,7 +11,7 @@ add_qtc_plugin(Ios
|
||||
iosdeploystep.cpp iosdeploystep.h
|
||||
iosdevice.cpp iosdevice.h
|
||||
iosdsymbuildstep.cpp iosdsymbuildstep.h
|
||||
iosplugin.cpp iosplugin.h
|
||||
iosplugin.cpp
|
||||
iosprobe.cpp iosprobe.h
|
||||
iosqtversion.cpp iosqtversion.h
|
||||
iosrunconfiguration.cpp iosrunconfiguration.h
|
||||
|
||||
@@ -32,7 +32,6 @@ QtcPlugin {
|
||||
"iosdsymbuildstep.cpp",
|
||||
"iosdsymbuildstep.h",
|
||||
"iosplugin.cpp",
|
||||
"iosplugin.h",
|
||||
"iosprobe.cpp",
|
||||
"iosprobe.h",
|
||||
"iosqtversion.cpp",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "iosplugin.h"
|
||||
|
||||
#include "iosbuildconfiguration.h"
|
||||
#include "iosbuildstep.h"
|
||||
#include "iosconfigurations.h"
|
||||
@@ -18,6 +16,8 @@
|
||||
#include "iostr.h"
|
||||
#include "iosrunconfiguration.h"
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
@@ -62,18 +62,28 @@ public:
|
||||
IosQmlProfilerWorkerFactory qmlProfilerWorkerFactory;
|
||||
};
|
||||
|
||||
IosPlugin::~IosPlugin()
|
||||
class IosPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Ios.json")
|
||||
|
||||
void IosPlugin::initialize()
|
||||
{
|
||||
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
||||
~IosPlugin() final
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
IosConfigurations::initialize();
|
||||
void initialize() final
|
||||
{
|
||||
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
||||
|
||||
d = new IosPluginPrivate;
|
||||
}
|
||||
IosConfigurations::initialize();
|
||||
|
||||
d = new IosPluginPrivate;
|
||||
}
|
||||
|
||||
IosPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // Internal::Ios
|
||||
|
||||
#include "iosplugin.moc"
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
// Copyright (C) 2016 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 Ios::Internal {
|
||||
|
||||
class IosPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Ios.json")
|
||||
|
||||
public:
|
||||
IosPlugin() = default;
|
||||
~IosPlugin() final;
|
||||
|
||||
private:
|
||||
void initialize() final;
|
||||
|
||||
class IosPluginPrivate *d = nullptr;
|
||||
};
|
||||
|
||||
} // Ios::Internal
|
||||
Reference in New Issue
Block a user