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