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 
10 #include "BLEProthesisInterface.h"
12 
13 #include <QThread>
14 
15 
17 {
18  Q_OBJECT
19 public:
20  BLEProthesisInterfaceQtWorkerThread(const std::string& mac, BLEProthesisInterface& owner);
22  void kill();
23  void sendCommand(const std::string& cmd);
24 private:
25  void run() override;
26 private:
27  BLEProthesisInterface* _owner{nullptr};
28  QString _mac;
29  BLEProthesisInterfaceQtWorker* _worker{nullptr};
30 };
BLEProthesisInterfaceQtWorkerThread::kill
void kill()
Definition: BLEProthesisInterfaceQtWorkerThread.cpp:12
BLEProthesisInterfaceQtWorkerThread::sendCommand
void sendCommand(const std::string &cmd)
Definition: BLEProthesisInterfaceQtWorkerThread.cpp:17
BLEProthesisInterfaceQtWorker.h
BLEProthesisInterfaceQtWorkerThread
Definition: BLEProthesisInterfaceQtWorkerThread.h:16
BLEProthesisInterfaceQtWorker
Definition: BLEProthesisInterfaceQtWorker.h:15
BLEProthesisInterfaceQtWorkerThread::BLEProthesisInterfaceQtWorkerThread
BLEProthesisInterfaceQtWorkerThread(const std::string &mac, BLEProthesisInterface &owner)
Definition: BLEProthesisInterfaceQtWorkerThread.cpp:4
BLEProthesisInterface
Definition: BLEProthesisInterface.h:10
BLEProthesisInterface.h
BLEProthesisInterfaceQtWorkerThread::~BLEProthesisInterfaceQtWorkerThread
~BLEProthesisInterfaceQtWorkerThread()