Improved scanning results model

This commit is contained in:
2021-08-17 14:03:33 +02:00
parent ea6849fead
commit 5f784b4bdc
9 changed files with 236 additions and 136 deletions

View File

@@ -1,15 +1,15 @@
#ifndef DEVICEHANDLER_H
#define DEVICEHANDLER_H
#include "bluetoothbaseclass.h"
#pragma once
// Qt includes
#include <QDateTime>
#include <QTimer>
#include <QVector>
#include <QLowEnergyController>
#include <QLowEnergyService>
// local includes
#include "bluetoothbaseclass.h"
class DeviceInfo;
class DeviceHandler : public BluetoothBaseClass
@@ -49,7 +49,7 @@ public:
DeviceHandler(QObject *parent = nullptr);
void setDevice(DeviceInfo *device);
void setDevice(const QBluetoothDeviceInfo &device);
void setAddressType(AddressType type);
AddressType addressType() const;
@@ -131,7 +131,7 @@ private:
QLowEnergyService *m_service = nullptr;
QLowEnergyDescriptor m_notificationDescLivestats;
QLowEnergyCharacteristic m_remotecontrolCharacteristic;
DeviceInfo *m_currentDevice{};
QBluetoothDeviceInfo m_currentDevice;
bool m_foundBobbycarService{};
@@ -161,5 +161,3 @@ private:
bool m_waitingForWrite{};
};
#endif // DEVICEHANDLER_H