2020-08-13 21:08:54 +02:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2012 Sebastian Kügler <sebas@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
*/
|
2013-06-24 15:23:45 +02:00
|
|
|
|
|
|
|
#ifndef PLUGINTEST_H
|
|
|
|
#define PLUGINTEST_H
|
|
|
|
|
2016-06-12 15:14:35 +02:00
|
|
|
#include <QApplication>
|
2013-06-24 15:23:45 +02:00
|
|
|
|
|
|
|
#include <Plasma/DataEngine>
|
|
|
|
|
|
|
|
class QCommandLineParser;
|
|
|
|
|
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
class PluginTestPrivate;
|
|
|
|
|
2016-06-12 15:14:35 +02:00
|
|
|
class PluginTest : public QApplication
|
2013-06-24 15:23:45 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2014-04-26 01:45:47 +02:00
|
|
|
public:
|
|
|
|
PluginTest(int &argc, char **argv, QCommandLineParser *parser);
|
|
|
|
virtual ~PluginTest();
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void runMain();
|
|
|
|
bool loadKPlugin();
|
|
|
|
bool loadFromPlasma();
|
|
|
|
void loadKQPlugin();
|
|
|
|
void dataUpdated(QString s, Plasma::DataEngine::Data d);
|
|
|
|
|
|
|
|
private:
|
|
|
|
PluginTestPrivate *d;
|
2013-06-24 15:23:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|