Debian Codegraph @

autotests/fakebluez/inputinterface.cpp

raw
1 /*
2 * SPDX-FileCopyrightText: 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 #include "inputinterface.h"
8
9 #include <QDBusConnection>
10
11 // InputObject
12 InputObject::InputObject(const QDBusObjectPath &path, QObject *parent)
13 : QObject(parent)
14 {
15 QDBusConnection::sessionBus().registerObject(path.path(), this);
16 }
17
18 // InputInterface
19 InputInterface::InputInterface(const QDBusObjectPath &path, const QVariantMap &properties, QObject *parent)
20 : QDBusAbstractAdaptor(parent)
21 {
22 setPath(path);
23 setObjectParent(parent);
24 setProperties(properties);
25 setName(QStringLiteral("org.bluez.Input1"));
26 }
27
28 QString InputInterface::reconnectMode() const
29 {
30 return Object::property(QStringLiteral("ReconnectMode")).toString();
31 }
32
33 #include "moc_inputinterface.cpp"