From 95e5cb549c443361e08e94354beed3ca6037ef5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 17 Sep 2019 10:21:15 +0200 Subject: [PATCH] Implement missing methods for bluetooth server --- libnymea-networkmanager/bluetooth/bluetoothserver.cpp | 10 ++++++++++ libnymea-networkmanager/bluetooth/bluetoothserver.h | 1 + libnymea-networkmanager/bluetooth/wirelessservice.h | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libnymea-networkmanager/bluetooth/bluetoothserver.cpp b/libnymea-networkmanager/bluetooth/bluetoothserver.cpp index 3eb3120..f9c3c3b 100644 --- a/libnymea-networkmanager/bluetooth/bluetoothserver.cpp +++ b/libnymea-networkmanager/bluetooth/bluetoothserver.cpp @@ -71,6 +71,16 @@ void BluetoothServer::setSoftwareVersion(const QString &softwareVersion) m_softwareVersion = softwareVersion; } +QString BluetoothServer::hardwareVersion() const +{ + return m_hardwareVersion; +} + +void BluetoothServer::setHardwareVersion(const QString &hardwareVersion) +{ + m_hardwareVersion = hardwareVersion; +} + bool BluetoothServer::running() const { return m_running; diff --git a/libnymea-networkmanager/bluetooth/bluetoothserver.h b/libnymea-networkmanager/bluetooth/bluetoothserver.h index c16cc7b..ab0984c 100644 --- a/libnymea-networkmanager/bluetooth/bluetoothserver.h +++ b/libnymea-networkmanager/bluetooth/bluetoothserver.h @@ -19,6 +19,7 @@ * . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + #ifndef BLUETOOTHSERVER_H #define BLUETOOTHSERVER_H diff --git a/libnymea-networkmanager/bluetooth/wirelessservice.h b/libnymea-networkmanager/bluetooth/wirelessservice.h index 71185ea..5e0336b 100644 --- a/libnymea-networkmanager/bluetooth/wirelessservice.h +++ b/libnymea-networkmanager/bluetooth/wirelessservice.h @@ -90,7 +90,6 @@ private: void commandScan(const QVariantMap &request); void commandGetCurrentConnection(const QVariantMap &request); - private slots: // Service void characteristicChanged(const QLowEnergyCharacteristic &characteristic, const QByteArray &value);