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 "testplugin_global.h"
|
|
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QObject>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
namespace MyPlugin {
|
|
|
|
|
|
|
|
|
|
class MYPLUGIN_EXPORT MyPluginImpl : public ExtensionSystem::IPlugin
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2014-08-26 17:29:38 +02:00
|
|
|
Q_PLUGIN_METADATA(IID "plugin" FILE "testplugin.json")
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
MyPluginImpl();
|
|
|
|
|
|
|
|
|
|
bool initialize(const QStringList &arguments, QString *errorString);
|
|
|
|
|
void extensionsInitialized();
|
|
|
|
|
|
2010-11-08 14:08:41 +01:00
|
|
|
public slots:
|
2008-12-02 12:01:29 +01:00
|
|
|
bool isInitialized() { return m_isInitialized; }
|
|
|
|
|
bool isExtensionsInitialized() { return m_isExtensionsInitialized; }
|
2010-11-08 14:08:41 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private:
|
|
|
|
|
bool m_isInitialized;
|
|
|
|
|
bool m_isExtensionsInitialized;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace
|