/debugger/qluadebuggeragent_p.h
https://code.google.com/p/qtlua/ · C Header · 61 lines · 34 code · 8 blank · 19 comment · 0 complexity · 278427e14dde2d164a5d18455d4a99c9 MD5 · raw file
- /* QtLua -- Lua bindings for Qt
- Copyright (C) 2011, Jarek Pelczar
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 3 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General
- Public License along with this library; if not, write to the
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301 USA
-
- */
-
- #ifndef QLUADEBUGGERAGENT_P_H
- #define QLUADEBUGGERAGENT_P_H
-
- #include <QObject>
- #include "qluascriptengineagent.h"
-
- class QLuaScriptDebugger;
-
- class QLuaDebuggerAgent : public QObject, public QLuaScriptEngineAgent
- {
- Q_OBJECT
- public:
- explicit QLuaDebuggerAgent(QLuaScriptDebugger *parent, QLuaScriptEngine * engine);
- ~QLuaDebuggerAgent();
-
- virtual void contextPop();
- virtual void contextPush();
- virtual void exceptionCatch(qint64 scriptId, const QLuaScriptValue& exception);
- virtual void exceptionThrow(qint64 scriptId, const QLuaScriptValue& exception, bool hasHandler);
- virtual void functionEntry(qint64 scriptId);
- virtual void functionExit(qint64 scriptId, const QLuaScriptValue & returnValue);
- virtual void positionChange(qint64 scriptId, int lineNumber, int columnNumber);
- virtual void scriptLoad(qint64 id, const QString & program, const QString& fileName, int baseLineNumber);
- virtual void scriptUnload(qint64 id);
-
- signals:
- void _p_contextPop();
- void _p_contextPush();
- void _p_exceptionCatch(qint64, const QLuaScriptValue&);
- void _p_exceptionThrow(qint64, const QLuaScriptValue&, bool);
- void _p_functionEntry(qint64);
- void _p_functionExit(qint64, const QLuaScriptValue&);
- void _p_positionChange(qint64, int, int);
- void _p_scriptLoad(qint64, QString, QString, int);
- void _p_scriptUnload(qint64);
-
- private:
- QLuaScriptDebugger * m_debugger;
- };
-
- #endif // QLUADEBUGGERAGENT_P_H