File indexing completed on 2025-01-26 05:06:20

0001 /*
0002     SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company <info@kdab.com>
0003 
0004     Work sponsored by the LiMux project of the city of Munich.
0005     SPDX-FileCopyrightText: Andras Mantia <andras.mantia@kdab.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 
0012 #include <QObject>
0013 
0014 class ScreenMapper;
0015 
0016 class ScreenMapperTest : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 private Q_SLOTS:
0021     void initTestCase();
0022     void init();
0023 
0024     void tst_addScreens();
0025     void tst_removeScreens();
0026     void tst_addMapping();
0027     void tst_addRemoveScreenWithItems();
0028     void tst_addRemoveScreenDifferentPaths();
0029 
0030     // Configuration read/write tests
0031     void tst_readScreenActivityMapping();
0032     void tst_saveScreenActivityMapping();
0033     void tst_readAndSaveItemsOnActivitiesOnDisabledScreens();
0034 
0035 private:
0036     void addScreens(const QUrl &path, const QString &activity);
0037 
0038     ScreenMapper *m_screenMapper;
0039     QString m_currentActivity;
0040     QString m_alternativeActivity;
0041 };