2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 14:09:21 +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 Plugin3 {
|
|
|
|
|
|
|
|
|
|
class MyPlugin3 : public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2016-05-30 23:40:35 +03:00
|
|
|
Q_PLUGIN_METADATA(IID "plugin" FILE "plugin3.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
2018-02-21 10:03:38 +01:00
|
|
|
MyPlugin3() = default;
|
|
|
|
|
~MyPlugin3();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-02-21 10:03:38 +01:00
|
|
|
bool initialize(const QStringList &arguments, QString *errorString) final;
|
|
|
|
|
void extensionsInitialized() final;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
2018-02-21 10:03:38 +01:00
|
|
|
bool initializeCalled = false;
|
|
|
|
|
QObject *object1 = nullptr;
|
|
|
|
|
QObject *object2 = nullptr;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2008-12-02 14:09:21 +01:00
|
|
|
} // namespace Plugin3
|