Files
qt-creator/tests/auto/extensionsystem/pluginmanager/circularplugins/plugin2/plugin2.h

30 lines
664 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>
#if defined(PLUGIN2_LIBRARY)
# define PLUGIN2_EXPORT Q_DECL_EXPORT
#elif defined(PLUGIN2_STATIC_LIBRARY)
# define PLUGIN2_EXPORT
#else
# define PLUGIN2_EXPORT Q_DECL_IMPORT
#endif
2008-12-02 12:01:29 +01:00
namespace Plugin2 {
class PLUGIN2_EXPORT MyPlugin2 : 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;
2008-12-02 12:01:29 +01:00
bool initialize(const QStringList &arguments, QString *errorString) final;
2008-12-02 12:01:29 +01:00
};
2008-12-02 14:09:21 +01:00
} // Plugin2