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

29 lines
654 B
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// 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
#pragma once
2008-12-02 12:01:29 +01:00
#include <extensionsystem/iplugin.h>
namespace Plugin1 {
class MyPlugin1 final : public ExtensionSystem::IPlugin
2008-12-02 12:01:29 +01:00
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "plugin" FILE "plugin1.json")
2008-12-02 12:01:29 +01:00
public:
MyPlugin1() = default;
~MyPlugin1() 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 Plugin1