2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-01-14 23:11:10 +04:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
namespace Python::Internal {
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2020-01-29 04:15:25 +03:00
|
|
|
class PythonPlugin final : public ExtensionSystem::IPlugin
|
2013-01-14 23:11:10 +04:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2019-07-15 12:50:29 +02:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Python.json")
|
2013-01-14 23:11:10 +04:00
|
|
|
|
|
|
|
|
public:
|
2019-10-18 10:31:14 +02:00
|
|
|
PythonPlugin();
|
2019-07-15 12:50:29 +02:00
|
|
|
~PythonPlugin() final;
|
2013-01-14 23:11:10 +04:00
|
|
|
|
2019-10-18 10:31:14 +02:00
|
|
|
static PythonPlugin *instance();
|
|
|
|
|
|
2018-04-26 17:42:07 +02:00
|
|
|
private:
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage) final;
|
|
|
|
|
void extensionsInitialized() final;
|
|
|
|
|
|
2019-07-15 12:50:29 +02:00
|
|
|
class PythonPluginPrivate *d = nullptr;
|
2013-01-14 23:11:10 +04:00
|
|
|
};
|
|
|
|
|
|
2022-07-15 11:49:34 +02:00
|
|
|
} // Python::Internal
|