PageRenderTime 38ms CodeModel.GetById 28ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1/* QtLua -- Lua bindings for Qt
 2   Copyright (C) 2011, Jarek Pelczar
 3
 4   This library is free software; you can redistribute it and/or
 5   modify it under the terms of the GNU Lesser General Public
 6   License as published by the Free Software Foundation; either
 7   version 3 of the License, or (at your option) any later version.
 8
 9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General
15   Public License along with this library; if not, write to the
16   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17   Boston, MA 02110-1301 USA
18
19*/
20
21#ifndef QLUADEBUGGERAGENT_P_H
22#define QLUADEBUGGERAGENT_P_H
23
24#include <QObject>
25#include "qluascriptengineagent.h"
26
27class QLuaScriptDebugger;
28
29class QLuaDebuggerAgent : public QObject, public QLuaScriptEngineAgent
30{
31    Q_OBJECT
32public:
33    explicit QLuaDebuggerAgent(QLuaScriptDebugger *parent, QLuaScriptEngine * engine);
34    ~QLuaDebuggerAgent();
35
36    virtual void contextPop();
37    virtual void contextPush();
38    virtual void exceptionCatch(qint64 scriptId, const QLuaScriptValue& exception);
39    virtual void exceptionThrow(qint64 scriptId, const QLuaScriptValue& exception, bool hasHandler);
40    virtual void functionEntry(qint64 scriptId);
41    virtual void functionExit(qint64 scriptId, const QLuaScriptValue & returnValue);
42    virtual void positionChange(qint64 scriptId, int lineNumber, int columnNumber);
43    virtual void scriptLoad(qint64 id, const QString & program, const QString& fileName, int baseLineNumber);
44    virtual void scriptUnload(qint64 id);
45
46signals:
47    void _p_contextPop();
48    void _p_contextPush();
49    void _p_exceptionCatch(qint64, const QLuaScriptValue&);
50    void _p_exceptionThrow(qint64, const QLuaScriptValue&, bool);
51    void _p_functionEntry(qint64);
52    void _p_functionExit(qint64, const QLuaScriptValue&);
53    void _p_positionChange(qint64, int, int);
54    void _p_scriptLoad(qint64, QString, QString, int);
55    void _p_scriptUnload(qint64);
56
57private:
58    QLuaScriptDebugger * m_debugger;
59};
60
61#endif // QLUADEBUGGERAGENT_P_H