From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/debugger/gdbcommand.h | 68 ++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'languages/cpp/debugger/gdbcommand.h') 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 -#include -#include +#include +#include +#include #include "mi/gdbmi.h" -#include +#include namespace GDBDebugger { @@ -38,10 +38,10 @@ class ValueCallback; class GDBCommand { public: - GDBCommand(const QString& command); + GDBCommand(const TQString& command); template - 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& allStreamOutput() const; + const TQValueVector& 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 handler_this; - typedef void (QObject::* handler_t)(const GDBMI::ResultRecord&); + TQString command_; + TQGuardedPtr handler_this; + typedef void (TQObject::* handler_t)(const GDBMI::ResultRecord&); handler_t handler_method; - QValueVector lines; + TQValueVector 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 - CliCommand(const QString& command, + CliCommand(const TQString& command, Handler* handler_this, - void (Handler::* handler_method)(const QValueVector&), + void (Handler::* handler_method)(const TQValueVector&), bool handlesError = false); @@ -153,8 +153,8 @@ public: // GDBCommand overrides bool invokeHandler(const GDBMI::ResultRecord& r); private: - QGuardedPtr cli_handler_this; - typedef void (QObject::* cli_handler_t)(const QValueVector&); + TQGuardedPtr cli_handler_this; + typedef void (TQObject::* cli_handler_t)(const TQValueVector&); 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 SentinelCommand(Handler* handler_this, @@ -180,22 +180,22 @@ public: (handler_this->*handler_method)(); } - QString cmdToSend() + TQString cmdToSend() { return ""; } private: - QGuardedPtr handler_this; + TQGuardedPtr 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 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 handler_this; + TQGuardedPtr handler_this; handler_method_t handler_method; }; @@ -234,7 +234,7 @@ private: template 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 CliCommand::CliCommand( - const QString& command, + const TQString& command, Handler* handler_this, - void (Handler::* handler_method)(const QValueVector&), + void (Handler::* handler_method)(const TQValueVector&), bool handlesError) : GDBCommand(command.latin1()), cli_handler_this(handler_this), -- cgit v1.2.3