forked from qt-creator/qt-creator
Instead of using plugin's own synchronizers. The global synchronizer does the synchronization just before all the plugins' destructors run (in sync), so this should be the right equivalent. Change-Id: I8d09c9ea4a11b7a703684ad5319191ce310d992e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
29 lines
620 B
C++
29 lines
620 B
C++
// 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 Python::Internal {
|
|
|
|
class PythonPlugin final : public ExtensionSystem::IPlugin
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Python.json")
|
|
|
|
public:
|
|
PythonPlugin();
|
|
~PythonPlugin() final;
|
|
|
|
static PythonPlugin *instance();
|
|
|
|
private:
|
|
void initialize() final;
|
|
void extensionsInitialized() final;
|
|
|
|
class PythonPluginPrivate *d = nullptr;
|
|
};
|
|
|
|
} // Python::Internal
|