From 15a510b68d3e76efe4a25861671d822a57b59029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 16 Jan 2018 10:25:23 +0100 Subject: [PATCH] Fix user authentication and details --- libguh-core/guhdbusservice.cpp | 2 +- libguh-core/guhdbusservice.h | 2 +- libguh-core/hardwaremanagerimplementation.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libguh-core/guhdbusservice.cpp b/libguh-core/guhdbusservice.cpp index 38fea3c8..6183a2ec 100644 --- a/libguh-core/guhdbusservice.cpp +++ b/libguh-core/guhdbusservice.cpp @@ -25,7 +25,7 @@ namespace guhserver { QDBusConnection GuhDBusService::s_connection = QDBusConnection::systemBus(); -GuhDBusService::GuhDBusService(const QString &objectPath, QObject *parent) : QObject(parent) +GuhDBusService::GuhDBusService(const QString &objectPath, UserManager *parent) : QObject(parent) { bool status = s_connection.registerService("io.guh.nymead"); if (!status) { diff --git a/libguh-core/guhdbusservice.h b/libguh-core/guhdbusservice.h index beed2dd4..74724116 100644 --- a/libguh-core/guhdbusservice.h +++ b/libguh-core/guhdbusservice.h @@ -34,7 +34,7 @@ class GuhDBusService : public QObject, public QDBusContext Q_CLASSINFO("D-Bus Interface", "io.guh.nymead") public: - explicit GuhDBusService(const QString &objectPath, QObject *parent = nullptr); + explicit GuhDBusService(const QString &objectPath, UserManager *parent = nullptr); static void setBusType(QDBusConnection::BusType busType); diff --git a/libguh-core/hardwaremanagerimplementation.h b/libguh-core/hardwaremanagerimplementation.h index ee76c171..2f1adb0c 100644 --- a/libguh-core/hardwaremanagerimplementation.h +++ b/libguh-core/hardwaremanagerimplementation.h @@ -56,6 +56,7 @@ public: QtAvahiServiceBrowser *avahiBrowser() override; BluetoothLowEnergyManager *bluetoothLowEnergyManager() override; + // D-Bus method for enable/disable bluetooth support Q_SCRIPTABLE void EnableBluetooth(const bool &enabled); private: