qavrg 0.0.28
Signals | Public Member Functions | Protected Member Functions | Private Attributes
QavrgAcquisitionThread Class Reference

#include <qavrgacquisitionthread.h>

List of all members.

Signals

void printMessage (QString msg)

Public Member Functions

 QavrgAcquisitionThread (QavrgApplication *app)
 ~QavrgAcquisitionThread ()
void shutdown ()
QavrgAcquisitionacquisition ()
void sleepFor (double secs)

Protected Member Functions

void run ()

Private Attributes

QavrgApplicationm_Application
QavrgAcquisitionm_Acquisition

Detailed Description

Definition at line 9 of file qavrgacquisitionthread.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

Definition at line 29 of file qavrgacquisitionthread.h.


The documentation for this class was generated from the following files: