Files
qt-creator/tests/manual/pluginview/plugins/plugin2/plugin2.h

29 lines
661 B
C
Raw Normal View History

// 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 14:09:21 +01:00
#pragma once
2008-12-02 12:01:29 +01:00
#include <extensionsystem/iplugin.h>
namespace Plugin2 {
class MyPlugin2 final : public ExtensionSystem::IPlugin
2008-12-02 12:01:29 +01:00
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "plugin" FILE "plugin2.json")
2008-12-02 12:01:29 +01:00
public:
MyPlugin2() = default;
~MyPlugin2() final;
2008-12-02 12:01:29 +01:00
bool initialize(const QStringList &arguments, QString *errorString) final;
void extensionsInitialized() final;
2008-12-02 12:01:29 +01:00
private:
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 Plugin2