Fix build with bluetooth enabled

We need to implement this pure virtual method.

This is just a placeholder and lacks a proper implementation.
This commit is contained in:
Nicolas Fella 2020-11-30 20:11:47 +01:00
parent 11e9aec374
commit 9082ed4699
2 changed files with 7 additions and 0 deletions

View file

@ -89,3 +89,8 @@ void BluetoothDeviceLink::dataReceived()
QMetaObject::invokeMethod(this, &BluetoothDeviceLink::dataReceived, Qt::QueuedConnection);
}
}
QSslCertificate BluetoothDeviceLink::certificate() const
{
return {}; // TODO Not sure what to do here. For LanDeviceLink we use the SSL connection's certificate, but we don't have that here
}

View file

@ -10,6 +10,7 @@
#include <QObject>
#include <QString>
#include <QBluetoothSocket>
#include <QSslCertificate>
#include "../devicelink.h"
#include "../devicelinereader.h"
@ -33,6 +34,7 @@ public:
virtual void userRequestsUnpair() override;
virtual bool linkShouldBeKeptAlive() override;
QSslCertificate certificate() const override;
private Q_SLOTS:
void dataReceived();