diff options
Diffstat (limited to 'include/LuaRuntime.hpp')
| -rw-r--r-- | include/LuaRuntime.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/LuaRuntime.hpp b/include/LuaRuntime.hpp deleted file mode 100644 index 5bfc82c..0000000 --- a/include/LuaRuntime.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include <QtCore> -#include <lua.hpp> - -#include "widgets/WebViewStack.hpp" - -class LuaRuntime : public QObject { - Q_OBJECT - -public: - static LuaRuntime *instance() { - static LuaRuntime inst; - return &inst; - } - - void evaluate(QString code); - -signals: - void urlOpened(QString url, OpenType openType); - -protected: - LuaRuntime(); - ~LuaRuntime(); - static int lua_onUrlOpen(lua_State *state); - static int lua_onUrlTabOpen(lua_State *state); - -private: - lua_State *state; -}; |
