File indexing completed on 2024-04-28 11:32:57

0001 /*
0002  * SPDX-FileCopyrightText: 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 #include "inputinterface.h"
0008 
0009 #include <QDBusConnection>
0010 
0011 // InputObject
0012 InputObject::InputObject(const QDBusObjectPath &path, QObject *parent)
0013     : QObject(parent)
0014 {
0015     QDBusConnection::sessionBus().registerObject(path.path(), this);
0016 }
0017 
0018 // InputInterface
0019 InputInterface::InputInterface(const QDBusObjectPath &path, const QVariantMap &properties, QObject *parent)
0020     : QDBusAbstractAdaptor(parent)
0021 {
0022     setPath(path);
0023     setObjectParent(parent);
0024     setProperties(properties);
0025     setName(QStringLiteral("org.bluez.Input1"));
0026 }
0027 
0028 QString InputInterface::reconnectMode() const
0029 {
0030     return Object::property(QStringLiteral("ReconnectMode")).toString();
0031 }
0032 
0033 #include "moc_inputinterface.cpp"