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>
|
|
|
|
|
|
2013-03-27 15:42:16 +02:00
|
|
|
#if defined(PLUGIN2_LIBRARY)
|
|
|
|
|
# define PLUGIN2_EXPORT Q_DECL_EXPORT
|
2022-04-21 14:10:09 +02:00
|
|
|
#elif defined(PLUGIN2_STATIC_LIBRARY)
|
|
|
|
|
# define PLUGIN2_EXPORT
|
2013-03-27 15:42:16 +02:00
|
|
|
#else
|
|
|
|
|
# define PLUGIN2_EXPORT Q_DECL_IMPORT
|
|
|
|
|
#endif
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace Plugin2 {
|
|
|
|
|
|
2013-03-27 15:42:16 +02:00
|
|
|
class PLUGIN2_EXPORT MyPlugin2 : public ExtensionSystem::IPlugin
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2014-08-26 17:29:38 +02:00
|
|
|
Q_PLUGIN_METADATA(IID "plugin" FILE "plugin2.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
2018-02-21 10:03:38 +01:00
|
|
|
MyPlugin2() = default;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-02-21 10:03:38 +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
|