21 class MailboxInterface;
30 class ScriptEngineWorker;
31 class ScriptExecutionControl;
47 void registerUserFunction(
const QString &name, QScriptEngine::FunctionSignature
function)
override;
48 void addCustomEngineInitStep(
const std::function<
void (QScriptEngine *)> &step)
override;
50 QStringList knownMethodNames()
const override;
55 void run(
const QString &
script,
const QString &fileName =
"")
override;
56 void runDirectCommand(
const QString &command)
override;
57 void abort()
override;
58 void brickBeep()
override;
61 void onScriptStart(
int scriptId);
64 void sendMessageFromMailBox(
int senderNumber,
const QString &message);
67 QScopedPointer<ScriptExecutionControl> mScriptController;
71 QThread mWorkerThread;
75 QHash<int, QString> mScriptFileNames;
76 QScopedPointer<TrikVariablesServer> mVariablesServer;
Definition: trikCommunicator.h:23
Definition: trikCommunicator.h:31
Interface for all script executors.
Definition: trikScriptRunnerInterface.h:100
Worker object to be run in a separate thread for Qt Script execution.
Definition: scriptEngineWorker.h:35
Executes scripts in Qt Scripting Engine.
Definition: trikJavaScriptRunner.h:34
Definition: trikCommunicator.h:27
Allows communication between robots.
Definition: mailboxInterface.h:31
bool wasError() override
Get status of last direct command/script.
Definition: trikJavaScriptRunner.h:52
script
Definition: system.py:83
Interface representing TRIK controller board and devices installed on it, also provides access to per...
Definition: brickInterface.h:46