aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/LuaRuntime.hpp')
-rw-r--r--src/LuaRuntime.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LuaRuntime.hpp b/src/LuaRuntime.hpp
index 5bfc82c..443dec5 100644
--- a/src/LuaRuntime.hpp
+++ b/src/LuaRuntime.hpp
@@ -1,7 +1,9 @@
#pragma once
+
#include <QtCore>
#include <lua.hpp>
+#include "AsyncEventLoop.hpp"
#include "widgets/WebViewStack.hpp"
class LuaRuntime : public QObject {
@@ -15,6 +17,11 @@ public:
void evaluate(QString code);
+ void stopEventLoop();
+ void startEventLoop();
+
+ DELEGATE(eventLoop, queueTask, queueTask)
+
signals:
void urlOpened(QString url, OpenType openType);
@@ -26,4 +33,5 @@ protected:
private:
lua_State *state;
+ AsyncEventLoop *eventLoop = nullptr;
};