File indexing completed on 2024-04-14 03:49:53

0001 /*
0002  * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef TESTINTERFACE_H
0008 #define TESTINTERFACE_H
0009 
0010 #include <QDBusAbstractAdaptor>
0011 #include <QDBusMessage>
0012 
0013 class FakeBluez;
0014 
0015 class TestInterface : public QDBusAbstractAdaptor
0016 {
0017     Q_OBJECT
0018     Q_CLASSINFO("D-Bus Interface", "org.kde.bluezqt.fakebluez.Test")
0019 
0020 public:
0021     explicit TestInterface(FakeBluez *parent);
0022 
0023 public Q_SLOTS:
0024     void runTest(const QString &testName);
0025     void runAction(const QString &object, const QString &actionName, const QVariantMap &properties, const QDBusMessage &msg);
0026 
0027     void emitActionFinished();
0028 
0029 private:
0030     FakeBluez *m_fakeBluez;
0031     QDBusMessage m_msg;
0032 };
0033 
0034 #endif // TESTINTERFACE_H