qavrg 0.0.28
|
#include <qavrgspecserverthread.h>
Signals | |
void | printMessage (QString msg) |
Public Member Functions | |
QavrgSpecServerThread (QavrgAcquisition *acq) | |
~QavrgSpecServerThread () | |
void | shutdown () |
QavrgSpecServer * | server () |
Protected Member Functions | |
void | run () |
Private Attributes | |
QavrgSpecServer * | m_SpecServer |
Definition at line 8 of file qavrgspecserverthread.h.
QavrgSpecServerThread::QavrgSpecServerThread | ( | QavrgAcquisition * | acq | ) |
Definition at line 5 of file qavrgspecserverthread.cpp.
References m_SpecServer.
: QThread(), m_SpecServer(NULL) { m_SpecServer = new QavrgSpecServer(acq); m_SpecServer -> moveToThread(this); }
QavrgSpecServerThread::~QavrgSpecServerThread | ( | ) |
Definition at line 13 of file qavrgspecserverthread.cpp.
References m_SpecServer, and shutdown().
{ shutdown(); delete m_SpecServer; }
void QavrgSpecServerThread::printMessage | ( | QString | msg | ) | [signal] |
Referenced by run().
void QavrgSpecServerThread::run | ( | ) | [protected] |
Definition at line 20 of file qavrgspecserverthread.cpp.
References m_SpecServer, and printMessage().
{ emit printMessage(tr("spec server thread 0x%1\n").arg((long)(QThread::currentThread()),8,16,QChar('0'))); m_SpecServer -> startServer(QHostAddress::Any); exec(); }
QavrgSpecServer * QavrgSpecServerThread::server | ( | ) |
Definition at line 36 of file qavrgspecserverthread.cpp.
References m_SpecServer.
{ return m_SpecServer; }
void QavrgSpecServerThread::shutdown | ( | ) |
Definition at line 29 of file qavrgspecserverthread.cpp.
Referenced by ~QavrgSpecServerThread().
{ exit(); wait(1000); }
Definition at line 25 of file qavrgspecserverthread.h.
Referenced by QavrgSpecServerThread(), run(), server(), and ~QavrgSpecServerThread().