BLEProthesisInterfaceQtWorkerThread.cpp
Go to the documentation of this file.
1
#include "
BLEProthesisInterfaceQtWorkerThread.h
"
2
3
4
BLEProthesisInterfaceQtWorkerThread::BLEProthesisInterfaceQtWorkerThread
(
const
std::string& mac,
BLEProthesisInterface
& owner) :
5
_owner{&owner},
6
_mac{QString::fromStdString(mac)}
7
{}
8
9
BLEProthesisInterfaceQtWorkerThread::~BLEProthesisInterfaceQtWorkerThread
()
10
=
default
;
11
12
void
BLEProthesisInterfaceQtWorkerThread::kill
()
13
{
14
_worker->
kill
();
15
}
16
17
void
BLEProthesisInterfaceQtWorkerThread::sendCommand
(
const
std::string& cmd)
18
{
19
_worker->
sendCommand
(cmd);
20
}
21
22
void
BLEProthesisInterfaceQtWorkerThread::run()
23
{
24
_worker =
new
BLEProthesisInterfaceQtWorker
{_mac, *_owner};
25
qDebug() <<
'['
<< _mac <<
']'
<<
" Starting qt event loop."
;
26
int
r = exec();
27
if
(_worker)
28
{
29
_worker->
kill
();
30
delete
_worker;
31
}
32
qDebug() <<
'['
<< _mac <<
']'
<<
" Sopped qt event loop -> "
<< r;
33
}
BLEProthesisInterfaceQtWorkerThread::kill
void kill()
Definition:
BLEProthesisInterfaceQtWorkerThread.cpp:12
BLEProthesisInterfaceQtWorkerThread::sendCommand
void sendCommand(const std::string &cmd)
Definition:
BLEProthesisInterfaceQtWorkerThread.cpp:17
BLEProthesisInterfaceQtWorker
Definition:
BLEProthesisInterfaceQtWorker.h:15
BLEProthesisInterfaceQtWorker::sendCommand
void sendCommand(const std::string &cmd)
Definition:
BLEProthesisInterfaceQtWorker.cpp:26
BLEProthesisInterfaceQtWorkerThread::BLEProthesisInterfaceQtWorkerThread
BLEProthesisInterfaceQtWorkerThread(const std::string &mac, BLEProthesisInterface &owner)
Definition:
BLEProthesisInterfaceQtWorkerThread.cpp:4
BLEProthesisInterfaceQtWorkerThread.h
BLEProthesisInterface
Definition:
BLEProthesisInterface.h:10
BLEProthesisInterfaceQtWorker::kill
void kill()
Definition:
BLEProthesisInterfaceQtWorker.cpp:21
BLEProthesisInterfaceQtWorkerThread::~BLEProthesisInterfaceQtWorkerThread
~BLEProthesisInterfaceQtWorkerThread()
RobotAPI
drivers
KITProstheticHandDriver
BLEProthesisInterfaceQtWorkerThread.cpp
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17