#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); }