File indexing completed on 2024-04-28 05:50:34
0001 /* 0002 SPDX-FileCopyrightText: 2010 Kurt Hindenburg <kurt.hindenburg@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DBUSTEST_H 0008 #define DBUSTEST_H 0009 0010 #include <QDBusConnectionInterface> 0011 #include <QDBusInterface> 0012 #include <QDBusReply> 0013 #include <QTest> 0014 #include <QTextCodec> 0015 0016 #include <unistd.h> 0017 0018 class QProcess; 0019 0020 namespace Konsole 0021 { 0022 class DBusTest : public QObject 0023 { 0024 Q_OBJECT 0025 public: 0026 private Q_SLOTS: 0027 void initTestCase(); 0028 void cleanupTestCase(); 0029 void testSessions(); 0030 void testWindows(); 0031 0032 // protected slots are not treated as test cases 0033 protected Q_SLOTS: 0034 0035 private: 0036 QString _interfaceName; 0037 QProcess *_process = nullptr; 0038 0039 QString _testProfileName; 0040 QString _testProfilePath; 0041 QString _testProfileEnv; 0042 }; 0043 0044 } 0045 0046 #endif // DBUSTEST_H