~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/java/debugger/jdbcommand.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          jdbcommand.cpp  -  description
 
3
                             -------------------
 
4
    begin                : Sun Aug 8 1999
 
5
    copyright            : (C) 1999 by John Birch
 
6
    email                : jbb@kdevelop.org
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#include "jdbcommand.h"
 
19
#include "breakpoint.h"
 
20
#include "variablewidget.h"
 
21
 
 
22
 
 
23
namespace JAVADebugger
 
24
{
 
25
 
 
26
JDBCommand::JDBCommand(const QCString &setCommand, bool isRunCmd, bool isInfoCmd, char setPrompt)
 
27
    : DbgCommand(setCommand, isRunCmd, isInfoCmd, setPrompt)
 
28
{
 
29
}
 
30
 
 
31
/***************************************************************************/
 
32
 
 
33
JDBCommand::~JDBCommand()
 
34
{
 
35
}
 
36
 
 
37
/***************************************************************************/
 
38
/***************************************************************************/
 
39
/***************************************************************************/
 
40
 
 
41
JDBItemCommand::JDBItemCommand( VarItem *item,
 
42
                                const QCString &command,
 
43
                                bool isRunCmd,
 
44
                                char prompt)
 
45
    : JDBCommand(command, isRunCmd, true, prompt),
 
46
      item_(item)
 
47
{
 
48
}
 
49
 
 
50
/***************************************************************************/
 
51
 
 
52
JDBItemCommand::~JDBItemCommand()
 
53
{
 
54
}
 
55
 
 
56
/***************************************************************************/
 
57
/***************************************************************************/
 
58
/***************************************************************************/
 
59
 
 
60
JDBPointerCommand::JDBPointerCommand(VarItem *item)
 
61
    : JDBItemCommand(item,
 
62
                     QCString("print *")+QCString(item->fullName().latin1()),
 
63
                     false,
 
64
                     DATAREQUEST)
 
65
{
 
66
}
 
67
 
 
68
/***************************************************************************/
 
69
 
 
70
JDBPointerCommand::~JDBPointerCommand()
 
71
{
 
72
}
 
73
 
 
74
/***************************************************************************/
 
75
/***************************************************************************/
 
76
/***************************************************************************/
 
77
 
 
78
//JDBReferenceCommand::JDBReferenceCommand(VarItem *item) :
 
79
//  JDBItemCommand(item, "print "+item->fullName(), false,
 
80
//                                                  DATAREQUEST)
 
81
//{
 
82
//}
 
83
//
 
84
///***************************************************************************/
 
85
//
 
86
//JDBReferenceCommand::~JDBReferenceCommand()
 
87
//{
 
88
//}
 
89
//
 
90
/***************************************************************************/
 
91
/***************************************************************************/
 
92
/***************************************************************************/
 
93
 
 
94
JDBSetBreakpointCommand::JDBSetBreakpointCommand(const QCString &command, int key)
 
95
    : JDBCommand(command, false, false, SET_BREAKPT),
 
96
      key_(key)
 
97
{
 
98
}
 
99
 
 
100
/***************************************************************************/
 
101
 
 
102
JDBSetBreakpointCommand::~JDBSetBreakpointCommand()
 
103
{
 
104
}
 
105
 
 
106
/***************************************************************************/
 
107
 
 
108
}