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

#include <qavrgscriptingthread.h>

List of all members.

Signals

void printMessage (QString msg)

Public Member Functions

 QavrgScriptingThread (QavrgApplication *app, QavrgWindow *win, QavrgAcquisition *acq)
 ~QavrgScriptingThread ()
void shutdown ()
QavrgScriptingEnginescriptingEngine () const

Protected Member Functions

void run ()

Private Attributes

QavrgScriptingEnginem_ScriptingEngine
QavrgApplicationm_Application
QavrgWindowm_Window
QavrgAcquisitionm_Acquisition

Detailed Description

Definition at line 11 of file qavrgscriptingthread.h.


Constructor & Destructor Documentation

QavrgScriptingThread::QavrgScriptingThread ( QavrgApplication app,
QavrgWindow win,
QavrgAcquisition acq 
)

Definition at line 6 of file qavrgscriptingthread.cpp.

References m_ScriptingEngine.

  : QThread(),
    m_ScriptingEngine(NULL),
    m_Application(app),
    m_Window(win),
    m_Acquisition(acq)
{
//  printf("enter QavrgScriptingThread::QavrgScriptingThread\n");

  m_ScriptingEngine = new QavrgScriptingEngine(app, win, acq);

  m_ScriptingEngine -> moveToThread(this);

//  printf("leave QavrgScriptingThread::QavrgScriptingThread\n");
}
QavrgScriptingThread::~QavrgScriptingThread ( )

Definition at line 22 of file qavrgscriptingthread.cpp.

References m_ScriptingEngine, and shutdown().

{
  shutdown();

  delete m_ScriptingEngine;
}

Member Function Documentation

void QavrgScriptingThread::printMessage ( QString  msg) [signal]
void QavrgScriptingThread::run ( ) [protected]

Definition at line 34 of file qavrgscriptingthread.cpp.

References m_ScriptingEngine.

{
  m_ScriptingEngine -> initialize();

  exec();
}
QavrgScriptingEngine * QavrgScriptingThread::scriptingEngine ( ) const

Definition at line 29 of file qavrgscriptingthread.cpp.

References m_ScriptingEngine.

{
  return m_ScriptingEngine;
}
void QavrgScriptingThread::shutdown ( )

Definition at line 41 of file qavrgscriptingthread.cpp.

Referenced by ~QavrgScriptingThread().

{
  exit();

  wait(1000);
}

Member Data Documentation

Definition at line 32 of file qavrgscriptingthread.h.

Definition at line 30 of file qavrgscriptingthread.h.

Definition at line 31 of file qavrgscriptingthread.h.


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