summaryrefslogtreecommitdiffstats
path: root/libksieve/ksieve
diff options
context:
space:
mode:
Diffstat (limited to 'libksieve/ksieve')
-rw-r--r--libksieve/ksieve/error.h12
-rw-r--r--libksieve/ksieve/lexer.h2
-rw-r--r--libksieve/ksieve/scriptbuilder.h14
3 files changed, 14 insertions, 14 deletions
diff --git a/libksieve/ksieve/error.h b/libksieve/ksieve/error.h
index 2dbed32c8..de84b2041 100644
--- a/libksieve/ksieve/error.h
+++ b/libksieve/ksieve/error.h
@@ -33,7 +33,7 @@
#ifndef __KSIEVE_ERROR_H__
#define __KSIEVE_ERROR_H__
-#include <qstring.h>
+#include <tqstring.h>
#include <kdepimmacros.h>
@@ -107,14 +107,14 @@ namespace KSieve {
static const char * typeToString( Type type );
Error( Type type=None,
- const QString & s1=QString::null, const QString & s2=QString::null,
+ const TQString & s1=TQString::null, const TQString & s2=TQString::null,
int line=-1, int col=-1 )
: mType( type ), mLine( line ), mCol( col ),
mStringOne( s1 ), mStringTwo( s2 ) {}
Error( Type type, int line, int col )
: mType( type ), mLine( line ), mCol( col ) {}
- QString asString() const;
+ TQString asString() const;
/** So you can write <pre>if( error() )</pre> with e.g. @ref Lexer */
operator bool() const {
@@ -124,14 +124,14 @@ namespace KSieve {
Type type() const { return mType; }
int line() const { return mLine; }
int column() const { return mCol; }
- QString firstString() const { return mStringOne; }
- QString secondString() const { return mStringTwo; }
+ TQString firstString() const { return mStringOne; }
+ TQString secondString() const { return mStringTwo; }
protected:
Type mType;
int mLine;
int mCol;
- QString mStringOne, mStringTwo;
+ TQString mStringOne, mStringTwo;
};
} // namespace KSieve
diff --git a/libksieve/ksieve/lexer.h b/libksieve/ksieve/lexer.h
index d5bb1fc3b..befcb0242 100644
--- a/libksieve/ksieve/lexer.h
+++ b/libksieve/ksieve/lexer.h
@@ -89,7 +89,7 @@ namespace KSieve {
/** Parse the next token and return it's type. @p result will contain
the value of the token. */
- Token nextToken( QString & result );
+ Token nextToken( TQString & result );
void save();
void restore();
diff --git a/libksieve/ksieve/scriptbuilder.h b/libksieve/ksieve/scriptbuilder.h
index 5e0a955bb..28fd60879 100644
--- a/libksieve/ksieve/scriptbuilder.h
+++ b/libksieve/ksieve/scriptbuilder.h
@@ -43,18 +43,18 @@ namespace KSieve {
public:
virtual ~ScriptBuilder() {}
- virtual void taggedArgument( const QString & tag ) = 0;
- virtual void stringArgument( const QString & string, bool multiLine, const QString & embeddedHashComment ) = 0;
+ virtual void taggedArgument( const TQString & tag ) = 0;
+ virtual void stringArgument( const TQString & string, bool multiLine, const TQString & embeddedHashComment ) = 0;
virtual void numberArgument( unsigned long number, char quantifier ) = 0;
virtual void stringListArgumentStart() = 0;
- virtual void stringListEntry( const QString & string, bool multiLine, const QString & embeddedHashComment ) = 0;
+ virtual void stringListEntry( const TQString & string, bool multiLine, const TQString & embeddedHashComment ) = 0;
virtual void stringListArgumentEnd() = 0;
- virtual void commandStart( const QString & identifier ) = 0;
+ virtual void commandStart( const TQString & identifier ) = 0;
virtual void commandEnd() = 0;
- virtual void testStart( const QString & identifier ) = 0;
+ virtual void testStart( const TQString & identifier ) = 0;
virtual void testEnd() = 0;
virtual void testListStart() = 0;
@@ -64,9 +64,9 @@ namespace KSieve {
virtual void blockEnd() = 0;
/** A hash comment always includes an implicit lineFeed() at it's end. */
- virtual void hashComment( const QString & comment ) = 0;
+ virtual void hashComment( const TQString & comment ) = 0;
/** Bracket comments inclde explicit lineFeed()s in their content */
- virtual void bracketComment( const QString & comment ) = 0;
+ virtual void bracketComment( const TQString & comment ) = 0;
virtual void lineFeed() = 0;