uprobeprotocol.cpp
31 lines
| 502 B
| text/x-c
|
CppLexer
/ src / uprobeprotocol.cpp
|
r2 | #include "uprobeprotocol.h" | ||
UProbeProtocol::UProbeProtocol(QObject *parent) : | ||||
QThread(parent),UComPort() | ||||
{ | ||||
moveToThread((QThread*)this); | ||||
} | ||||
UProbeProtocol::~UProbeProtocol() | ||||
{ | ||||
this->requestInterruption(); | ||||
while(isRunning()); | ||||
} | ||||
void UProbeProtocol::run() | ||||
{ | ||||
while(!this->isInterruptionRequested()) | ||||
{ | ||||
} | ||||
} | ||||
void UProbeProtocol::setPortName(const QString &name) | ||||
{ | ||||
UComPort::setPortName(name); | ||||
} | ||||
void UProbeProtocol::setSpeed(int speed) | ||||
{ | ||||
UComPort::setSpeed(speed); | ||||
} | ||||