summaryrefslogtreecommitdiffstats
path: root/quanta/components/debugger/quantadebuggerinterface.h
blob: 9c2ba724d51236489aeead5e40a8b5a75a5049e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/***************************************************************************
                               debugmanager.h
                             ------------------
    begin                : 2004-03-12
    copyright            : (C) 2004 Linus McCabe <linus@mccabe.nu>

 ***************************************************************************/

/****************************************************************************
 *                                                                          *
 *   This program is free software; you can redistribute it and/or modify   *
 *   it under the terms of the GNU General Public License as published by   *
 *   the Free Software Foundation; either version 2 of the License, or      *
 *   (at your option) any later version.                                    *
 *                                                                          *
 ***************************************************************************/

#ifndef MYDEBUGMANAGER_H
#define MYDEBUGMANAGER_H

#include <tqobject.h>
#include <tqstring.h>
#include "debuggerinterface.h"
#include "debuggervariable.h"

class DebuggerManager;

class QuantaDebuggerInterface : public DebuggerInterface
{
    Q_OBJECT
  TQ_OBJECT

  private:
    DebuggerManager *m_manager;

  public:
    QuantaDebuggerInterface(TQObject *myparent, const char* name);
    ~QuantaDebuggerInterface();

    // Breakpoints
    void haveBreakpoint (const TQString& file, int line) ;
    void havenoBreakpoint (const TQString& file, int line) ;
    void refreshBreakpoints();

    // Public help functions
    bool showtqStatus(const TQString& message, bool log);
    bool setActiveLine (const TQString& file, int line) ;

    void enableAction(const TQString& action, bool enable);
    void fileOpened(const TQString& file) ;
    void sendRequest(const KURL &url);
    virtual const TQString activeFileParts(const TQString & str);

    // Watches handling
    //void preWatchUpdate();
    //void postWatchUpdate();
    DebuggerVariable* newDebuggerVariable(const TQString& name, const TQString& value, int type);
    DebuggerVariable* newDebuggerVariable(const TQString& name, const ValueList_t& values, int type);
    void showVariable(DebuggerVariable*);

    // Breakpoints
    void showBreakpoint(const DebuggerBreakpoint &bp);
    DebuggerBreakpoint * newDebuggerBreakpoint();
    DebuggerBreakpoint * findDebuggerBreakpoint(const TQString& key);
    void updateBreakpointKey(const DebuggerBreakpoint &bp, const TQString& newkey);

    // Backtrace
    void backtraceClear();
    void backtraceShow(long level, BacktraceType type, const TQString &filename, long line, const TQString& func);

    // Path mapping
    PathMapper* Mapper();
};

#endif