Debian Codegraph @

autotests/fakebluez/testinterface.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2014-2015 David Rosca <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7 #ifndef TESTINTERFACE_H
8 #define TESTINTERFACE_H
9
10 #include <QDBusAbstractAdaptor>
11 #include <QDBusMessage>
12
13 class FakeBluez;
14
15 class TestInterface : public QDBusAbstractAdaptor
16 {
17 Q_OBJECT
18 Q_CLASSINFO("D-Bus Interface", "org.kde.bluezqt.fakebluez.Test")
19
20 public:
21 explicit TestInterface(FakeBluez *parent);
22
23 public Q_SLOTS:
24 void runTest(const QString &testName);
25 void runAction(const QString &object, const QString &actionName, const QVariantMap &properties, const QDBusMessage &msg);
26
27 void emitActionFinished();
28
29 private:
30 FakeBluez *m_fakeBluez;
31 QDBusMessage m_msg;
32 };
33
34 #endif // TESTINTERFACE_H