KDevelop API Documentation

languages/java/debugger/jdbcommand.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 jdbcommand.h - description 00003 ------------------- 00004 begin : Sun Aug 8 1999 00005 copyright : (C) 1999 by John Birch 00006 email : jbb@kdevelop.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef _JDBCOMMAND_H_ 00019 #define _JDBCOMMAND_H_ 00020 00021 #include "dbgcommand.h" 00022 00023 namespace JAVADebugger 00024 { 00025 00026 class Breakpoint; 00027 class VarItem; 00028 00029 00030 // sigh - namespace's don't work on some of the older compilers 00031 enum JDBCmd 00032 { 00033 BLOCK_START = '\32', 00034 SRC_POSITION = '\32', // Hmmm, same value may not work for all compilers 00035 00036 BPLIST = 'B', 00037 SET_BREAKPT = 'b', 00038 00039 DATAREQUEST = 'D', 00040 DISASSEMBLE = 'd', 00041 00042 FRAME = 'F', 00043 FILE_START = 'f', 00044 00045 INITIALISE = 'I', 00046 IDLE = 'i', 00047 00048 LOCALS = 'L', 00049 LIBRARIES = 'l', 00050 00051 MEMDUMP = 'M', 00052 00053 RUN = 'R', 00054 REGISTERS = 'r', 00055 00056 PROGRAM_STOP = 'S', 00057 00058 STEP = 's', 00059 00060 BACKTRACE = 'T', 00061 00062 SETWATCH = 'W', 00063 UNSETWATCH = 'w', 00064 00065 DETACH = 'z', 00066 00067 WAIT = '0' 00068 }; 00069 00070 #define RUNCMD (true) 00071 #define NOTRUNCMD (false) 00072 #define INFOCMD (true) 00073 #define NOTINFOCMD (false) 00074 00079 class JDBCommand : public DbgCommand 00080 { 00081 public: 00082 JDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true, 00083 char prompt=WAIT); 00084 virtual ~JDBCommand(); 00085 00086 private: 00087 static QCString idlePrompt_; 00088 }; 00089 00090 /***************************************************************************/ 00091 /***************************************************************************/ 00092 /***************************************************************************/ 00093 class JDBItemCommand : public JDBCommand 00094 { 00095 public: 00096 JDBItemCommand(VarItem *item, const QCString &command, 00097 bool isRunCmd=false, char prompt=DATAREQUEST); 00098 virtual ~JDBItemCommand(); 00099 00100 VarItem *getItem() { return item_; } 00101 00102 private: 00103 VarItem *item_; 00104 }; 00105 00106 /***************************************************************************/ 00107 /***************************************************************************/ 00108 /***************************************************************************/ 00109 class JDBPointerCommand : public JDBItemCommand 00110 { 00111 public: 00112 JDBPointerCommand(VarItem *item); 00113 virtual ~JDBPointerCommand(); 00114 }; 00115 00116 /***************************************************************************/ 00117 /***************************************************************************/ 00118 /***************************************************************************/ 00119 //class JDBReferenceCommand : public JDBItemCommand 00120 //{ 00121 //public: 00122 // JDBReferenceCommand(VarItem* item); 00123 // virtual ~JDBReferenceCommand(); 00124 //}; 00125 00126 /***************************************************************************/ 00127 /***************************************************************************/ 00128 /***************************************************************************/ 00129 class JDBSetBreakpointCommand : public JDBCommand 00130 { 00131 public: 00132 JDBSetBreakpointCommand(const QCString& setCommand, int key); 00133 virtual ~JDBSetBreakpointCommand(); 00134 00135 int getKey() const { return key_; } 00136 00137 private: 00138 int key_; 00139 }; 00140 00141 /***************************************************************************/ 00142 /***************************************************************************/ 00143 /***************************************************************************/ 00144 00145 } 00146 00147 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:02 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003