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

« back to all changes in this revision

Viewing changes to languages/ruby/debugger/dbgcommand.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    begin                : Sun Aug 8 1999
3
 
    copyright            : (C) 1999 by John Birch
4
 
    email                : jbb@kdevelop.org
5
 
        
6
 
                          Adapted for ruby debugging
7
 
                          --------------------------
8
 
    begin                : Mon Nov 1 2004
9
 
    copyright            : (C) 2004 by Richard Dale
10
 
    email                : Richard_Dale@tipitina.demon.co.uk
11
 
 ***************************************************************************/
12
 
 
13
 
/***************************************************************************
14
 
 *                                                                         *
15
 
 *   This program is free software; you can redistribute it and/or modify  *
16
 
 *   it under the terms of the GNU General Public License as published by  *
17
 
 *   the Free Software Foundation; either version 2 of the License, or     *
18
 
 *   (at your option) any later version.                                   *
19
 
 *                                                                         *
20
 
 ***************************************************************************/
21
 
 
22
 
#ifndef DBGCOMMAND_H
23
 
#define DBGCOMMAND_H
24
 
 
25
 
#include <qstring.h>
26
 
 
27
 
/**
28
 
 * @author John Birch
29
 
 */
30
 
 
31
 
namespace RDBDebugger
32
 
{
33
 
 
34
 
class DbgCommand
35
 
{
36
 
public:
37
 
    DbgCommand(const QCString& command, bool isRunCmd, bool isInfoCmd);
38
 
    virtual ~DbgCommand() {};
39
 
 
40
 
    virtual QCString& cmdToSend()             { sent_ = true;  return cmdBuffer_; }
41
 
    virtual int cmdLength()                   { return cmdBuffer_.length(); }
42
 
 
43
 
    QCString rawDbgCommand() const            { return command_; }
44
 
    bool isARunCmd() const                    { return isRunCmd_;}
45
 
    bool isAnInfoCmd() const                  { return isInfoCmd_; }
46
 
    bool moreToSend() const                   { return !sent_; }
47
 
    bool expectReply() const                  { return waitForReply_; }
48
 
 
49
 
protected:
50
 
    QCString cmdBuffer_;
51
 
    QCString command_;
52
 
    bool    isRunCmd_;
53
 
    bool    isInfoCmd_;
54
 
    bool    sent_;
55
 
    bool    waitForReply_;
56
 
};
57
 
 
58
 
}
59
 
 
60
 
/***************************************************************************/
61
 
/***************************************************************************/
62
 
/***************************************************************************/
63
 
 
64
 
#endif