17 #include <QtCore/QThread> 18 #include <QtScript/QScriptEngine> 45 QString
error()
const;
70 QScriptEngine *mEngine;
bool isEvaluating() const
Definition: scriptThread.cpp:79
Definition: trikCommunicator.h:23
Designed to support OS threads from a Qt Script.
Definition: threading.h:34
Thread object which executes a script with a QScriptEngine.
Definition: scriptThread.h:25
QString id() const
Definition: scriptThread.cpp:69
void stopRunning()
Emitted when event loop must be stopped.
QString error() const
Definition: scriptThread.cpp:74
~ScriptThread() override
Definition: scriptThread.cpp:35
ScriptThread(Threading &threading, const QString &id, QScriptEngine *engine, const QString &script)
Constructor.
Definition: scriptThread.cpp:27
void abort()
Aborts execution. Asynchronous: a thread will not be finished on return from this function...
Definition: scriptThread.cpp:63
void run() override
Definition: scriptThread.cpp:39
void variablesReady(const QJsonObject &json)
Emitted when variables values are ready.
void onGetVariables(const QString &propertyName)
Catch variables values from current script execution.
Definition: scriptThread.cpp:86
script
Definition: system.py:83