From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkmime/kmime_header_parsing.h | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'libkmime/kmime_header_parsing.h') diff --git a/libkmime/kmime_header_parsing.h b/libkmime/kmime_header_parsing.h index 326a7e1b..c595a421 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 -#include -#include +#include +#include +#include #include @@ -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 qpair; }; struct KDE_EXPORT AddrSpec { - QString asString() const; - QString localPart; - QString domain; + TQString asString() const; + TQString localPart; + TQString domain; }; - typedef QValueList AddrSpecList; + typedef TQValueList AddrSpecList; struct KDE_EXPORT Mailbox { - QString displayName; + TQString displayName; AddrSpec addrSpec; }; - typedef QValueList MailboxList; + typedef TQValueList MailboxList; struct KDE_EXPORT Address { - QString displayName; + TQString displayName; MailboxList mailboxList; }; - typedef QValueList
AddressList; + typedef TQValueList
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 & 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 & 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 & result, + QPair & result, bool isCRLF=false ) KDE_EXPORT; bool parseParameterList( const char* & scursor, const char * const send, - QMap & result, bool isCRLF=false ) KDE_EXPORT; + TQMap & result, bool isCRLF=false ) KDE_EXPORT; bool parseRawParameterList( const char* & scursor, const char * const send, - QMap & result, + TQMap & result, bool isCRLF=false ) KDE_EXPORT; bool parseTime( const char* & scursor, const char * const send, -- cgit v1.2.3