Showing the changes to libraries/script-engine/src/ScriptEngine.h (1 of 2 files). Show all
Unified · Split
| @@ -93,6 +93,7 @@ public: · 92 unmodified lines | ||
| 93 | 93 | public slots: |
| 94 | 94 | void stop(); |
| 95 | 95 | |
| 96 | + QScriptValue evaluate(const QString& program, const QString& fileName = QString(), int lineNumber = 1); | |
| 96 | 97 | QObject* setInterval(const QScriptValue& function, int intervalMS); |
| 97 | 98 | QObject* setTimeout(const QScriptValue& function, int timeoutMS); |
| 98 | 99 | void clearInterval(QObject* timer) { stopTimer(reinterpret_cast<QTimer*>(timer)); } |
| @@ -108,6 +109,7 @@ signals: · 9 unmodified lines | ||
| 108 | 109 | void printedMessage(const QString& message); |
| 109 | 110 | void errorMessage(const QString& message); |
| 110 | 111 | void runningStateChanged(); |
| 112 | + void evaluationFinished(QScriptValue result, bool isException); | |
| 111 | 113 | |
| 112 | 114 | protected: |
| 113 | 115 | QString _scriptContents; |