BLEProthesisInterfaceQtWorkerThread.h
Go to the documentation of this file.
1#pragma once
2
3#include <mutex>
4
5#include <QBluetoothDeviceDiscoveryAgent>
6#include <QBluetoothDeviceInfo>
7#include <QLowEnergyController>
8#include <QLowEnergyService>
9#include <QThread>
10
13
15{
16 Q_OBJECT
17public:
18 BLEProthesisInterfaceQtWorkerThread(const std::string& mac, BLEProthesisInterface& owner);
20 void kill();
21 void sendCommand(const std::string& cmd);
22
23private:
24 void run() override;
25
26private:
27 BLEProthesisInterface* _owner{nullptr};
28 QString _mac;
29 BLEProthesisInterfaceQtWorker* _worker{nullptr};
30};
BLEProthesisInterfaceQtWorkerThread(const std::string &mac, BLEProthesisInterface &owner)