KDevelop API Documentation

dbgcommand.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           dbgcommand.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 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 //protected:
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
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:29 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003