dbgcommand.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef DBGCOMMAND_H
00019 #define DBGCOMMAND_H
00020
00021 #include <qstring.h>
00022
00027 namespace JAVADebugger
00028 {
00029
00030 class DbgCommand
00031 {
00032 public:
00033 DbgCommand(const QCString& command, bool isRunCmd, bool isInfoCmd, char prompt);
00034 virtual ~DbgCommand() {};
00035
00036 virtual QCString& cmdToSend() { sent_ = true; return cmdBuffer_; }
00037 virtual int cmdLength() { return cmdBuffer_.length(); }
00038
00039 QCString rawDbgCommand() const { return command_; }
00040 bool isARunCmd() const { return isRunCmd_;}
00041 bool isAnInfoCmd() const { return isInfoCmd_; }
00042 bool moreToSend() const { return !sent_; }
00043 bool expectReply() const { return waitForReply_; }
00044 bool typeMatch(char cmdType) const { return (prompt_ == cmdType); }
00045
00046
00047 QCString cmdBuffer_;
00048 QCString command_;
00049 bool isRunCmd_;
00050 bool isInfoCmd_;
00051 bool sent_;
00052 bool waitForReply_;
00053 char prompt_;
00054 };
00055
00056
00057
00058
00059 }
00060
00061 #endif
This file is part of the documentation for KDevelop Version 3.1.2.