qavrg 0.0.28
|
#include <qavrgacquisitionthread.h>
Signals | |
void | printMessage (QString msg) |
Public Member Functions | |
QavrgAcquisitionThread (QavrgApplication *app) | |
~QavrgAcquisitionThread () | |
void | shutdown () |
QavrgAcquisition * | acquisition () |
void | sleepFor (double secs) |
Protected Member Functions | |
void | run () |
Private Attributes | |
QavrgApplication * | m_Application |
QavrgAcquisition * | m_Acquisition |
Definition at line 9 of file qavrgacquisitionthread.h.
QavrgAcquisitionThread::QavrgAcquisitionThread | ( | QavrgApplication * | app | ) |
Definition at line 5 of file qavrgacquisitionthread.cpp.
References m_Acquisition.
: QThread(), m_Application(app), m_Acquisition(NULL) { m_Acquisition = new QavrgAcquisition(this, app, NULL); m_Acquisition -> moveToThread(this); }
QavrgAcquisitionThread::~QavrgAcquisitionThread | ( | ) |
Definition at line 14 of file qavrgacquisitionthread.cpp.
References m_Acquisition, and shutdown().
{ shutdown(); delete m_Acquisition; }
QavrgAcquisition * QavrgAcquisitionThread::acquisition | ( | ) |
Definition at line 32 of file qavrgacquisitionthread.cpp.
References m_Acquisition.
{ return m_Acquisition; }
void QavrgAcquisitionThread::printMessage | ( | QString | msg | ) | [signal] |
void QavrgAcquisitionThread::run | ( | ) | [protected] |
Definition at line 37 of file qavrgacquisitionthread.cpp.
References m_Acquisition.
{ m_Acquisition -> initialize(); exec(); }
void QavrgAcquisitionThread::shutdown | ( | ) |
Definition at line 21 of file qavrgacquisitionthread.cpp.
References m_Acquisition.
Referenced by ~QavrgAcquisitionThread().
{ double integ = m_Acquisition -> get_IntegrationTime(); m_Acquisition -> acquireCancel(); exit(); wait(integ*1000+500); }
void QavrgAcquisitionThread::sleepFor | ( | double | secs | ) |
Definition at line 44 of file qavrgacquisitionthread.cpp.
Referenced by QavrgAcquisitionSimulated::simulatedWaitAcquisition().
{ msleep(secs*1000); }
Definition at line 30 of file qavrgacquisitionthread.h.
Referenced by acquisition(), QavrgAcquisitionThread(), run(), shutdown(), and ~QavrgAcquisitionThread().
Definition at line 29 of file qavrgacquisitionthread.h.