qavrg 0.0.28
|
#include <qavrgscriptingthread.h>
Signals | |
void | printMessage (QString msg) |
Public Member Functions | |
QavrgScriptingThread (QavrgApplication *app, QavrgWindow *win, QavrgAcquisition *acq) | |
~QavrgScriptingThread () | |
void | shutdown () |
QavrgScriptingEngine * | scriptingEngine () const |
Protected Member Functions | |
void | run () |
Private Attributes | |
QavrgScriptingEngine * | m_ScriptingEngine |
QavrgApplication * | m_Application |
QavrgWindow * | m_Window |
QavrgAcquisition * | m_Acquisition |
Definition at line 11 of file qavrgscriptingthread.h.
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; }
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); }
Definition at line 32 of file qavrgscriptingthread.h.
Definition at line 30 of file qavrgscriptingthread.h.
Definition at line 29 of file qavrgscriptingthread.h.
Referenced by QavrgScriptingThread(), run(), scriptingEngine(), and ~QavrgScriptingThread().
QavrgWindow* QavrgScriptingThread::m_Window [private] |
Definition at line 31 of file qavrgscriptingthread.h.