File indexing completed on 2024-04-21 05:36:01

0001 /*
0002     SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <Plasma/Corona>
0010 #include <QSet>
0011 
0012 class CoronaTestHelper : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit CoronaTestHelper(Plasma::Corona *parent);
0017 
0018     void processContainment(Plasma::Containment *containment);
0019     void processApplet(Plasma::Applet *applet);
0020 
0021 private Q_SLOTS:
0022     void testFinished();
0023 
0024 private:
0025     void initialize();
0026     void integrateTest(QObject *testObject);
0027 
0028     Plasma::Corona *m_corona;
0029     QSet<QObject *> m_registeredTests;
0030     QSet<QObject *> m_tests;
0031 
0032     int m_exitcode;
0033 };