summaryrefslogtreecommitdiffstats
path: root/languages/cpp/debugger/mi/gdbmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/debugger/mi/gdbmi.h')
-rw-r--r--languages/cpp/debugger/mi/gdbmi.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/languages/cpp/debugger/mi/gdbmi.h b/languages/cpp/debugger/mi/gdbmi.h
index 667246a0..64252ee5 100644
--- a/languages/cpp/debugger/mi/gdbmi.h
+++ b/languages/cpp/debugger/mi/gdbmi.h
@@ -22,9 +22,9 @@
#ifndef GDBMI_H
#define GDBMI_H
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
#include <stdexcept>
@@ -94,7 +94,7 @@ namespace GDBMI
/** If this value is a string literals, returns the string value.
Othewise, throws type_error.
*/
- virtual QString literal() const;
+ virtual TQString literal() const;
/** If the value is a string literal, converts it to int and
returns. If conversion fails, or the value cannot be
@@ -106,7 +106,7 @@ namespace GDBMI
has a field named 'variable'. Otherwise,
throws type_error.
*/
- virtual bool hasField(const QString& variable) const;
+ virtual bool hasField(const TQString& variable) const;
/** If this value is a tuple, and contains named field 'variable',
returns it. Otherwise, throws 'type_error'.
@@ -114,7 +114,7 @@ namespace GDBMI
we can save on casting, when we know for sure that instance
is TupleValue, or ListValue.
*/
- virtual const Value& operator[](const QString& variable) const;
+ virtual const Value& operator[](const TQString& variable) const;
/** If this value is a list, returns true if the list is empty.
If this value is not a list, throws 'type_error'.
@@ -140,22 +140,22 @@ namespace GDBMI
Result() : value(0) {}
~Result() { delete value; value = 0; }
- QString variable;
+ TQString variable;
Value *value;
};
struct StringLiteralValue : public Value
{
- StringLiteralValue(const QString &lit)
+ StringLiteralValue(const TQString &lit)
: literal_(lit) { Value::kind = StringLiteral; }
public: // Value overrides
- QString literal() const;
+ TQString literal() const;
int toInt(int base) const;
private:
- QString literal_;
+ TQString literal_;
};
struct TupleValue : public Value
@@ -163,12 +163,12 @@ namespace GDBMI
TupleValue() { Value::kind = Tuple; }
~TupleValue();
- bool hasField(const QString&) const;
- const Value& operator[](const QString& variable) const;
+ bool hasField(const TQString&) const;
+ const Value& operator[](const TQString& variable) const;
- QValueList<Result*> results;
- QMap<QString, GDBMI::Result*> results_by_name;
+ TQValueList<Result*> results;
+ TQMap<TQString, GDBMI::Result*> results_by_name;
};
struct ListValue : public Value
@@ -182,14 +182,14 @@ namespace GDBMI
const Value& operator[](unsigned index) const;
- QValueList<Result*> results;
+ TQValueList<Result*> results;
};
struct Record
{
virtual ~Record() {}
- virtual QString toString() const { Q_ASSERT( 0 ); return QString::null; }
+ virtual TQString toString() const { Q_ASSERT( 0 ); return TQString::null; }
enum { Prompt, Stream, Result } kind;
};
@@ -198,14 +198,14 @@ namespace GDBMI
{
ResultRecord() { Record::kind = Result; }
- QString reason;
+ TQString reason;
};
struct PromptRecord : public Record
{
inline PromptRecord() { Record::kind = Prompt; }
- virtual QString toString() const
+ virtual TQString toString() const
{ return "(prompt)\n"; }
};
@@ -214,7 +214,7 @@ namespace GDBMI
inline StreamRecord() : reason(0) { Record::kind = Stream; }
char reason;
- QString message;
+ TQString message;
};
}