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

30 lines
681 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>
#if defined(PLUGIN1_LIBRARY)
# define PLUGIN1_EXPORT Q_DECL_EXPORT
#elif defined(PLUGIN1_STATIC_LIBRARY)
# define PLUGIN1_EXPORT
#else
# define PLUGIN1_EXPORT Q_DECL_IMPORT
#endif
2008-12-02 12:01:29 +01:00
namespace Plugin1 {
class PLUGIN1_EXPORT MyPlugin1 : 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;
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
} // namespace Plugin1