2022-08-19 15:59:36 +02:00
|
|
|
// 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
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QObject>
|
2013-03-27 15:42:16 +02:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
|
|
#if defined(PLUGIN3_LIBRARY)
|
|
|
|
|
# define PLUGIN3_EXPORT Q_DECL_EXPORT
|
2022-04-21 14:10:09 +02:00
|
|
|
#elif defined(PLUGIN3_STATIC_LIBRARY)
|
|
|
|
|
# define PLUGIN3_EXPORT
|
2013-03-27 15:42:16 +02:00
|
|
|
#else
|
|
|
|
|
# define PLUGIN3_EXPORT Q_DECL_IMPORT
|
|
|
|
|
#endif
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace Plugin3 {
|
|
|
|
|
|
2013-03-27 15:42:16 +02:00
|
|
|
class PLUGIN3_EXPORT MyPlugin3 : 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 "plugin3.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MyPlugin3();
|
|
|
|
|
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
|
};
|
|
|
|
|
|
2008-12-02 14:09:21 +01:00
|
|
|
} // namespace Plugin3
|