summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/gdbcommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/gdbcommand.h')
-rw-r--r--languages/cpp/debugger/gdbcommand.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/languages/cpp/debugger/gdbcommand.h b/languages/cpp/debugger/gdbcommand.h
index 8c928394..946bc3aa 100644
--- a/languages/cpp/debugger/gdbcommand.h
+++ b/languages/cpp/debugger/gdbcommand.h
@@ -16,12 +16,12 @@
#ifndef _GDBCOMMAND_H_
#define _GDBCOMMAND_H_
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluevector.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
#include "mi/gdbmi.h"
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
namespace GDBDebugger
{
@@ -38,10 +38,10 @@ class ValueCallback;
class GDBCommand
{
public:
- GDBCommand(const QString& command);
+ GDBCommand(const TQString& command);
template<class Handler>
- GDBCommand(const QString& command,
+ GDBCommand(const TQString& command,
Handler* handler_this,
void (Handler::* handler_method)(const GDBMI::ResultRecord&),
bool handlesError = false);
@@ -51,7 +51,7 @@ public:
dynamically, possibly using results of the previous
commands.
If the empty string is returned, nothing is sent. */
- virtual QString cmdToSend();
+ virtual TQString cmdToSend();
/* Returns the initial string that was specified in
ctor invocation. The actual command will be
@@ -59,7 +59,7 @@ public:
value of this method is only used in various
diagnostic messages emitted before actually
sending the command. */
- QString initialString() const;
+ TQString initialString() const;
/* Returns true if this is command entered by the user
and so should be always shown in the gdb output window. */
@@ -78,9 +78,9 @@ public:
// Called by gdbcontroller for each new output string
// gdb emits for this command. In MI mode, this includes
// all "stream" messages, but does not include MI responses.
- void newOutput(const QString&);
+ void newOutput(const TQString&);
- const QValueVector<QString>& allStreamOutput() const;
+ const TQValueVector<TQString>& allStreamOutput() const;
// True if this command run then target for
// unspecified period of time -- that is either 'run' or
@@ -90,11 +90,11 @@ public:
void setRun(bool run);
private:
- QString command_;
- QGuardedPtr<QObject> handler_this;
- typedef void (QObject::* handler_t)(const GDBMI::ResultRecord&);
+ TQString command_;
+ TQGuardedPtr<TQObject> handler_this;
+ typedef void (TQObject::* handler_t)(const GDBMI::ResultRecord&);
handler_t handler_method;
- QValueVector<QString> lines;
+ TQValueVector<TQString> lines;
bool run;
protected: // FIXME: should be private, after I kill the first ctor
@@ -106,7 +106,7 @@ protected: // FIXME: should be private, after I kill the first ctor
class UserCommand : public GDBCommand
{
public:
- UserCommand(const QString& s);
+ UserCommand(const TQString& s);
bool isUserCommand() const;
};
@@ -125,10 +125,10 @@ public:
/** The 'comamnd' should include a single format specifier "%1" that
will be replaced with the id of breakpoint.
*/
- ModifyBreakpointCommand(const QString& command, const Breakpoint* bp);
+ ModifyBreakpointCommand(const TQString& command, const Breakpoint* bp);
public: // DbgCommand overrides
- virtual QString cmdToSend();
+ virtual TQString cmdToSend();
private:
const Breakpoint* bp_;
@@ -142,9 +142,9 @@ class CliCommand : public GDBCommand
{
public:
template<class Handler>
- CliCommand(const QString& command,
+ CliCommand(const TQString& command,
Handler* handler_this,
- void (Handler::* handler_method)(const QValueVector<QString>&),
+ void (Handler::* handler_method)(const TQValueVector<TQString>&),
bool handlesError = false);
@@ -153,8 +153,8 @@ public: // GDBCommand overrides
bool invokeHandler(const GDBMI::ResultRecord& r);
private:
- QGuardedPtr<QObject> cli_handler_this;
- typedef void (QObject::* cli_handler_t)(const QValueVector<QString>&);
+ TQGuardedPtr<TQObject> cli_handler_this;
+ typedef void (TQObject::* cli_handler_t)(const TQValueVector<TQString>&);
cli_handler_t cli_handler_method;
};
@@ -165,7 +165,7 @@ private:
class SentinelCommand : public GDBCommand
{
public:
- typedef void (QObject::*handler_method_t)();
+ typedef void (TQObject::*handler_method_t)();
template<class Handler>
SentinelCommand(Handler* handler_this,
@@ -180,22 +180,22 @@ public:
(handler_this->*handler_method)();
}
- QString cmdToSend()
+ TQString cmdToSend()
{
return "";
}
private:
- QGuardedPtr<QObject> handler_this;
+ TQGuardedPtr<TQObject> handler_this;
handler_method_t handler_method;
};
/* Command for which we don't want any reply. */
-class ResultlessCommand : public QObject, public GDBCommand
+class ResultlessCommand : public TQObject, public GDBCommand
{
public:
- ResultlessCommand(const QString& command, bool handlesError = false)
+ ResultlessCommand(const TQString& command, bool handlesError = false)
: GDBCommand(command, this, &ResultlessCommand::handle, handlesError)
{}
@@ -204,16 +204,16 @@ private:
{}
};
-class ExpressionValueCommand : public QObject, public GDBCommand
+class ExpressionValueCommand : public TQObject, public GDBCommand
{
public:
- typedef void (QObject::*handler_method_t)(const QString&);
+ typedef void (TQObject::*handler_method_t)(const TQString&);
template<class Handler>
ExpressionValueCommand(
- const QString& expression,
+ const TQString& expression,
Handler* handler_this,
- void (Handler::* handler_method)(const QString&))
+ void (Handler::* handler_method)(const TQString&))
: GDBCommand(("-data-evaluate-expression " + expression).ascii(), this,
&ExpressionValueCommand::handleResponse),
handler_this(handler_this),
@@ -226,7 +226,7 @@ public:
}
private:
- QGuardedPtr<QObject> handler_this;
+ TQGuardedPtr<TQObject> handler_this;
handler_method_t handler_method;
};
@@ -234,7 +234,7 @@ private:
template<class Handler>
GDBCommand::GDBCommand(
- const QString& command,
+ const TQString& command,
Handler* handler_this,
void (Handler::* handler_method)(const GDBMI::ResultRecord&),
bool handlesError)
@@ -248,9 +248,9 @@ GDBCommand::GDBCommand(
template<class Handler>
CliCommand::CliCommand(
- const QString& command,
+ const TQString& command,
Handler* handler_this,
- void (Handler::* handler_method)(const QValueVector<QString>&),
+ void (Handler::* handler_method)(const TQValueVector<TQString>&),
bool handlesError)
: GDBCommand(command.latin1()),
cli_handler_this(handler_this),