diff options
Diffstat (limited to 'libkmime/kmime_header_parsing.h')
-rw-r--r-- | libkmime/kmime_header_parsing.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/libkmime/kmime_header_parsing.h b/libkmime/kmime_header_parsing.h index 326a7e1ba..c595a4214 100644 --- a/libkmime/kmime_header_parsing.h +++ b/libkmime/kmime_header_parsing.h @@ -32,9 +32,9 @@ #ifndef __KMIME_HEADER_PARSING_H__ #define __KMIME_HEADER_PARSING_H__ -#include <qstring.h> -#include <qpair.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqpair.h> +#include <tqvaluelist.h> #include <time.h> @@ -50,28 +50,28 @@ namespace Types { // for when we can't make up our mind what to use... struct KDE_EXPORT QStringOrQPair { QStringOrQPair() : qstring(), qpair(0,0) {} - QString qstring; + TQString qstring; QPair<const char*,int> qpair; }; struct KDE_EXPORT AddrSpec { - QString asString() const; - QString localPart; - QString domain; + TQString asString() const; + TQString localPart; + TQString domain; }; - typedef QValueList<AddrSpec> AddrSpecList; + typedef TQValueList<AddrSpec> AddrSpecList; struct KDE_EXPORT Mailbox { - QString displayName; + TQString displayName; AddrSpec addrSpec; }; - typedef QValueList<Mailbox> MailboxList; + typedef TQValueList<Mailbox> MailboxList; struct KDE_EXPORT Address { - QString displayName; + TQString displayName; MailboxList mailboxList; }; - typedef QValueList<Address> AddressList; + typedef TQValueList<Address> AddressList; struct KDE_EXPORT DateTime { time_t time; // secs since 1.1.1970, 0:00 UTC/GMT @@ -98,7 +98,7 @@ namespace HeaderParsing { @return the decoded string the encoded word represented. */ bool parseEncodedWord( const char* & scursor, const char * const send, - QString & result, QCString & language ) KDE_EXPORT; + TQString & result, TQCString & language ) KDE_EXPORT; // // The parsing squad: // @@ -106,34 +106,34 @@ namespace HeaderParsing { /** You may or may not have already started parsing into the atom. This function will go on where you left off. */ bool parseAtom( const char* & scursor, const char * const send, - QString & result, bool allow8Bit=false ) KDE_EXPORT; + TQString & result, bool allow8Bit=false ) KDE_EXPORT; bool parseAtom( const char* & scursor, const char * const send, QPair<const char*,int> & result, bool allow8Bit=false ) KDE_EXPORT; /** You may or may not have already started parsing into the token. This function will go on where you left off. */ bool parseToken( const char* & scursor, const char * const send, - QString & result, bool allow8Bit=false ) KDE_EXPORT; + TQString & result, bool allow8Bit=false ) KDE_EXPORT; bool parseToken( const char* & scursor, const char * const send, QPair<const char*,int> & result, bool allow8Bit=false ) KDE_EXPORT; /** @p scursor must be positioned after the opening openChar. */ bool parseGenericQuotedString( const char* & scursor, const char* const send, - QString & result, bool isCRLF, + TQString & result, bool isCRLF, const char openChar='"', const char closeChar='"' ) KDE_EXPORT; /** @p scursor must be positioned right after the opening '(' */ bool parseComment( const char* & scursor, const char * const send, - QString & result, bool isCRLF=false, bool reallySave=true ) KDE_EXPORT; + TQString & result, bool isCRLF=false, bool reallySave=true ) KDE_EXPORT; /** You may or may not have already started parsing into the phrase, but only if it starts with atext. If you setup this function to parse a phrase starting with an encoded-word or quoted-string, @p scursor has to point to the char introducing the encoded-word or quoted-string, resp. */ bool parsePhrase( const char* & scursor, const char * const send, - QString & result, bool isCRLF=false ) KDE_EXPORT; + TQString & result, bool isCRLF=false ) KDE_EXPORT; /** You may or may not have already started parsing into the initial atom, but not up to it's end. */ bool parseDotAtom( const char* & scursor, const char * const send, - QString & result, bool isCRLF=false ) KDE_EXPORT; + TQString & result, bool isCRLF=false ) KDE_EXPORT; /** Eats comment-folding-white-space, skips whitespace, folding and comments (even nested ones) and stops at the next non-CFWS @@ -147,9 +147,9 @@ namespace HeaderParsing { void eatCFWS( const char* & scursor, const char * const send, bool isCRLF ) KDE_EXPORT; bool parseDomain( const char* & scursor, const char * const send, - QString & result, bool isCRLF=false ) KDE_EXPORT; + TQString & result, bool isCRLF=false ) KDE_EXPORT; bool parseObsRoute( const char* & scursor, const char * const send, - QStringList & result, + TQStringList & result, bool isCRLF=false, bool save=false ) KDE_EXPORT; bool parseAddrSpec( const char* & scursor, const char * const send, Types::AddrSpec & result, bool isCRLF=false ) KDE_EXPORT; @@ -165,13 +165,13 @@ namespace HeaderParsing { Types::AddressList & result, bool isCRLF=false ) KDE_EXPORT; bool parseParameter( const char* & scursor, const char * const send, - QPair<QString,Types::QStringOrQPair> & result, + QPair<TQString,Types::QStringOrQPair> & result, bool isCRLF=false ) KDE_EXPORT; bool parseParameterList( const char* & scursor, const char * const send, - QMap<QString,QString> & result, bool isCRLF=false ) KDE_EXPORT; + TQMap<TQString,TQString> & result, bool isCRLF=false ) KDE_EXPORT; bool parseRawParameterList( const char* & scursor, const char * const send, - QMap<QString,Types::QStringOrQPair> & result, + TQMap<TQString,Types::QStringOrQPair> & result, bool isCRLF=false ) KDE_EXPORT; bool parseTime( const char* & scursor, const char * const send, |