From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/ruby/debugger/rdbcommand.h | 99 ++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 languages/ruby/debugger/rdbcommand.h (limited to 'languages/ruby/debugger/rdbcommand.h') diff --git a/languages/ruby/debugger/rdbcommand.h b/languages/ruby/debugger/rdbcommand.h new file mode 100644 index 00000000..663c8119 --- /dev/null +++ b/languages/ruby/debugger/rdbcommand.h @@ -0,0 +1,99 @@ +/*************************************************************************** + begin : Sun Aug 8 1999 + copyright : (C) 1999 by John Birch + email : jbb@kdevelop.org + + Adapted for ruby debugging + -------------------------- + begin : Mon Nov 1 2004 + copyright : (C) 2004 by Richard Dale + email : Richard_Dale@tipitina.demon.co.uk + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef _RDBCOMMAND_H_ +#define _RDBCOMMAND_H_ + +#include "dbgcommand.h" + +namespace RDBDebugger +{ + +class Breakpoint; +class VarItem; + +// sigh - namespace's don't work on some of the older compilers +enum RDBCmd +{ + CONSTANTS = 'C', + CVARS = 'V', + IVARS = 'I', + LOCALS = 'L' +}; + +#define RUNCMD (true) +#define NOTRUNCMD (false) +#define INFOCMD (true) +#define NOTINFOCMD (false) + +/** + * @author John Birch + */ + +class RDBCommand : public DbgCommand +{ +public: + RDBCommand(const QCString& command, bool isRunCmd=false, bool isInfoCmd=true); + virtual ~RDBCommand(); + +private: + static QCString idlePrompt_; +}; + +/***************************************************************************/ +/***************************************************************************/ +/***************************************************************************/ +class RDBItemCommand : public RDBCommand +{ +public: + RDBItemCommand(VarItem *item, const QCString &command, + bool isRunCmd=false); + virtual ~RDBItemCommand(); + + VarItem *getItem() { return item_; } + +private: + VarItem *item_; +}; + + +/***************************************************************************/ +/***************************************************************************/ +/***************************************************************************/ +class RDBSetBreakpointCommand : public RDBCommand +{ +public: + RDBSetBreakpointCommand(const QCString& setCommand, int key); + virtual ~RDBSetBreakpointCommand(); + + int getKey() const { return key_; } + +private: + int key_; +}; + +/***************************************************************************/ +/***************************************************************************/ +/***************************************************************************/ + +} + +#endif -- cgit v1.2.3