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 | public slots: | 93 | public slots: |
| 94 | void stop(); | 94 | void stop(); |
| 95 | 95 | ||
| 96 | QScriptValue evaluate(const QString& program, const QString& fileName = QString(), int lineNumber = 1); | ||
| 96 | QObject* setInterval(const QScriptValue& function, int intervalMS); | 97 | QObject* setInterval(const QScriptValue& function, int intervalMS); |
| 97 | QObject* setTimeout(const QScriptValue& function, int timeoutMS); | 98 | QObject* setTimeout(const QScriptValue& function, int timeoutMS); |
| 98 | void clearInterval(QObject* timer) { stopTimer(reinterpret_cast<QTimer*>(timer)); } | 99 | void clearInterval(QObject* timer) { stopTimer(reinterpret_cast<QTimer*>(timer)); } |
| @@ -108,6 +109,7 @@ signals: · 9 unmodified lines | |||
| 108 | void printedMessage(const QString& message); | 109 | void printedMessage(const QString& message); |
| 109 | void errorMessage(const QString& message); | 110 | void errorMessage(const QString& message); |
| 110 | void runningStateChanged(); | 111 | void runningStateChanged(); |
| 112 | void evaluationFinished(QScriptValue result, bool isException); | ||
| 111 | 113 | ||
| 112 | protected: | 114 | protected: |
| 113 | QString _scriptContents; | 115 | QString _scriptContents; |