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
|
2008-12-02 15:08:31 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
|
|
|
|
namespace HelloWorld {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2018-01-26 17:41:49 +01:00
|
|
|
class HelloMode;
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
class HelloWorldPlugin
|
|
|
|
|
: public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-02-21 16:52:28 +01:00
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "HelloWorld.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
HelloWorldPlugin();
|
2018-11-11 00:53:35 +01:00
|
|
|
~HelloWorldPlugin() override;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-11-11 00:53:35 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorMessage) override;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-11-11 00:53:35 +01:00
|
|
|
void extensionsInitialized() override;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-05-29 00:15:09 +03:00
|
|
|
private:
|
2008-12-02 12:01:29 +01:00
|
|
|
void sayHelloWorld();
|
2018-01-26 17:41:49 +01:00
|
|
|
|
|
|
|
|
HelloMode *m_helloMode = nullptr;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace HelloWorld
|