File indexing completed on 2024-04-28 15:29:56

0001 /*
0002     SPDX-FileCopyrightText: 2012 Sebastian Kügler <sebas@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef PLUGINTEST_H
0008 #define PLUGINTEST_H
0009 
0010 #include <QObject>
0011 
0012 class PluginTestPrivate;
0013 
0014 class PluginTest : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     PluginTest();
0020     ~PluginTest() override;
0021 
0022 public Q_SLOTS:
0023     int runMain();
0024     bool loadFromKService(const QString &name = QStringLiteral("time"));
0025     bool loadFromMetaData(const QString &serviceType = QStringLiteral("Plasma/DataEngine"));
0026     bool findPlugins();
0027     void report(const QList<qint64> timings, const QString &msg = QStringLiteral("Test took "));
0028 
0029 private:
0030     PluginTestPrivate *d;
0031 };
0032 
0033 #endif