summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_headers.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_headers.h')
-rw-r--r--libkmime/kmime_headers.h234
1 files changed, 117 insertions, 117 deletions
diff --git a/libkmime/kmime_headers.h b/libkmime/kmime_headers.h
index 779cd341a..2ba0e1b8d 100644
--- a/libkmime/kmime_headers.h
+++ b/libkmime/kmime_headers.h
@@ -24,14 +24,14 @@
#include "kmime_header_parsing.h"
-#include <qstring.h>
-#include <qstrlist.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qdatetime.h>
-#include <qasciidict.h>
-#include <qmap.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqstrlist.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqdatetime.h>
+#include <tqasciidict.h>
+#include <tqmap.h>
+#include <tqptrlist.h>
#include <time.h>
@@ -62,16 +62,16 @@ enum contentDisposition { CDinline,
CDparallel };
//often used charset
-static const QCString Latin1("ISO-8859-1");
+static const TQCString Latin1("ISO-8859-1");
#define mk_trivial_subclass_with_name( subclass, subclassName, baseclass ) \
class subclass : public Generics::baseclass { \
public: \
subclass() : Generics::baseclass() {} \
subclass( Content * p ) : Generics::baseclass( p ) {} \
- subclass( Content * p, const QCString & s ) \
+ subclass( Content * p, const TQCString & s ) \
: Generics::baseclass( p ) { from7BitString( s ); } \
- subclass( Content * p, const QString & s, const QCString & cs ) \
+ subclass( Content * p, const TQString & s, const TQCString & cs ) \
: Generics::baseclass( p ) { fromUnicodeString( s, cs ); } \
~subclass() {} \
\
@@ -86,9 +86,9 @@ class subclass : public Generics::baseclass { \
public: \
subclass() : Generics::baseclass() {} \
subclass( Content * p ) : Generics::baseclass( p ) {} \
- subclass( Content * p, const QCString & s ) \
+ subclass( Content * p, const TQCString & s ) \
: Generics::baseclass( p ) { from7BitString( s ); } \
- subclass( Content * p, const QString & s, const QCString & cs ) \
+ subclass( Content * p, const TQString & s, const TQCString & cs ) \
: Generics::baseclass( p ) { fromUnicodeString( s, cs ); } \
~subclass() {} \
\
@@ -111,7 +111,7 @@ mk_parsing_subclass_with_name( subclass, subclass, baseclass )
class KDE_EXPORT Base {
public:
- typedef QPtrList<Base> List;
+ typedef TQPtrList<Base> List;
/** Create an empty header. */
Base() : e_ncCS(0), p_arent(0) {}
@@ -131,30 +131,30 @@ class KDE_EXPORT Base {
/** Parse the given string. Take care of RFC2047-encoded
strings. A default charset is given. If the last parameter
is true the default charset is used in any case */
- virtual void from7BitString(const QCString&) {}
+ virtual void from7BitString(const TQCString&) {}
/** Return the encoded header. The parameter specifies
whether the header-type should be included. */
- virtual QCString as7BitString(bool=true) { return QCString(); }
+ virtual TQCString as7BitString(bool=true) { return TQCString(); }
/** Return the charset that is used for RFC2047-encoding */
- QCString rfc2047Charset();
+ TQCString rfc2047Charset();
/** Set the charset for RFC2047-encoding */
- void setRFC2047Charset(const QCString &cs);
+ void setRFC2047Charset(const TQCString &cs);
/** Return the default charset */
- QCString defaultCS();
+ TQCString defaultCS();
/** Return if the default charset is mandatory */
bool forceCS();
/** Parse the given string and set the charset. */
- virtual void fromUnicodeString(const QString&, const QCString&) {}
+ virtual void fromUnicodeString(const TQString&, const TQCString&) {}
/** Return the decoded content of the header without
the header-type. */
- virtual QString asUnicodeString() { return QString(); }
+ virtual TQString asUnicodeString() { return TQString(); }
/** Delete */
virtual void clear() {}
@@ -175,7 +175,7 @@ class KDE_EXPORT Base {
bool isXHeader() { return (strncmp(type(), "X-", 2)==0); }
protected:
- QCString typeIntro() { return (QCString(type())+": "); }
+ TQCString typeIntro() { return (TQCString(type())+": "); }
const char *e_ncCS;
Content *p_arent;
@@ -218,24 +218,24 @@ class KDE_EXPORT GUnstructured : public Base {
public:
GUnstructured() : Base() {}
GUnstructured( Content * p ) : Base( p ) {}
- GUnstructured( Content * p, const QCString & s )
+ GUnstructured( Content * p, const TQCString & s )
: Base( p ) { from7BitString(s); }
- GUnstructured( Content * p, const QString & s, const QCString & cs )
+ GUnstructured( Content * p, const TQString & s, const TQCString & cs )
: Base( p ) { fromUnicodeString( s, cs ); }
~GUnstructured() {}
- virtual void from7BitString( const QCString& str );
- virtual QCString as7BitString( bool withHeaderType=true );
+ virtual void from7BitString( const TQCString& str );
+ virtual TQCString as7BitString( bool withHeaderType=true );
- virtual void fromUnicodeString( const QString & str,
- const QCString & suggestedCharset);
- virtual QString asUnicodeString();
+ virtual void fromUnicodeString( const TQString & str,
+ const TQCString & suggestedCharset);
+ virtual TQString asUnicodeString();
virtual void clear() { d_ecoded.truncate(0); }
virtual bool isEmpty() { return (d_ecoded.isEmpty()); }
private:
- QString d_ecoded;
+ TQString d_ecoded;
};
/** This is the base class for all structured header fields. It
@@ -270,9 +270,9 @@ class KDE_EXPORT GStructured : public Base {
public:
GStructured() : Base() {}
GStructured( Content * p ) : Base( p ) {}
- GStructured( Content * p, const QCString & s )
+ GStructured( Content * p, const TQCString & s )
: Base( p ) { from7BitString(s); }
- GStructured( Content * p, const QString & s, const QCString & cs )
+ GStructured( Content * p, const TQString & s, const TQCString & cs )
: Base( p ) { fromUnicodeString( s, cs ); }
~GStructured() {}
@@ -281,21 +281,21 @@ protected:
#if 0
// the assembly squad:
- bool writeAtom( char* & dcursor, const char * const dend, const QString & input );
+ bool writeAtom( char* & dcursor, const char * const dend, const TQString & input );
bool writeAtom( char* & dcursor, const char * const dend,
const QPair<const char*,int> & input );
- bool writeToken( char* & dcursor, const char * const dend, const QString & input );
+ bool writeToken( char* & dcursor, const char * const dend, const TQString & input );
bool writeToken( char* & dcursor, const char * const dend,
const QPair<const char*int> & input );
bool writeGenericQuotedString( char* & dcursor, const char * const dend,
- const QString & input, bool withCRLF=false );
+ const TQString & input, bool withCRLF=false );
bool writeComment( char* & dcursor, const char * const dend,
- const QString & input, bool withCRLF=false );
+ const TQString & input, bool withCRLF=false );
bool writePhrase( char* & dcursor, const char * const dend,
- const QString & input, bool withCRLF=false );
+ const TQString & input, bool withCRLF=false );
bool writeDotAtom( char* & dcursor, const char * const dend,
- const QString & input, bool withCRLF=false );
+ const TQString & input, bool withCRLF=false );
#endif
};
@@ -304,9 +304,9 @@ class KDE_EXPORT GAddress : public GStructured {
public:
GAddress() : GStructured() {}
GAddress( Content * p ) : GStructured( p ) {}
- GAddress( Content * p, const QCString & s )
+ GAddress( Content * p, const TQCString & s )
: GStructured( p ) { from7BitString(s); }
- GAddress( Content * p, const QString & s, const QCString & cs )
+ GAddress( Content * p, const TQString & s, const TQCString & cs )
: GStructured( p ) { fromUnicodeString( s, cs ); }
~GAddress() {}
@@ -320,9 +320,9 @@ class KDE_EXPORT MailboxList : public GAddress {
public:
MailboxList() : GAddress() {}
MailboxList( Content * p ) : GAddress( p ) {}
- MailboxList( Content * p, const QCString & s )
+ MailboxList( Content * p, const TQCString & s )
: GAddress( p ) { from7BitString(s); }
- MailboxList( Content * p, const QString & s, const QCString & cs )
+ MailboxList( Content * p, const TQString & s, const TQCString & cs )
: GAddress( p ) { fromUnicodeString( s, cs ); }
~MailboxList() {}
@@ -330,7 +330,7 @@ protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
/** The list of mailboxes */
- QValueList<Types::Mailbox> mMailboxList;
+ TQValueList<Types::Mailbox> mMailboxList;
};
@@ -344,9 +344,9 @@ class KDE_EXPORT AddressList : public GAddress {
public:
AddressList() : GAddress() {}
AddressList( Content * p ) : GAddress( p ) {}
- AddressList( Content * p, const QCString & s )
+ AddressList( Content * p, const TQCString & s )
: GAddress( p ) { from7BitString(s); }
- AddressList( Content * p, const QString & s, const QCString & cs )
+ AddressList( Content * p, const TQString & s, const TQCString & cs )
: GAddress( p ) { fromUnicodeString( s, cs ); }
~AddressList() {}
@@ -354,7 +354,7 @@ protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
/** The list of addresses */
- QValueList<Types::Address> mAddressList;
+ TQValueList<Types::Address> mAddressList;
};
/** Base class for headers which deal with a list of msg-id's */
@@ -362,9 +362,9 @@ class KDE_EXPORT GIdent : public GAddress {
public:
GIdent() : GAddress() {}
GIdent( Content * p ) : GAddress( p ) {}
- GIdent( Content * p, const QCString & s )
+ GIdent( Content * p, const TQCString & s )
: GAddress( p ) { from7BitString(s); }
- GIdent( Content * p, const QString & s, const QCString & cs )
+ GIdent( Content * p, const TQString & s, const TQCString & cs )
: GAddress( p ) { fromUnicodeString( s, cs ); }
~GIdent() {}
@@ -372,7 +372,7 @@ protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
/** The list of msg-id's */
- QValueList<Types::AddrSpec> mMsgIdList;
+ TQValueList<Types::AddrSpec> mMsgIdList;
};
/** Base class for headers which deal with a list of msg-id's */
@@ -383,16 +383,16 @@ class KDE_EXPORT GToken : public GStructured {
public:
GToken() : GStructured() {}
GToken( Content * p ) : GStructured( p ) {}
- GToken( Content * p, const QCString & s )
+ GToken( Content * p, const TQCString & s )
: GStructured( p ) { from7BitString(s); }
- GToken( Content * p, const QString & s, const QCString & cs )
+ GToken( Content * p, const TQString & s, const TQCString & cs )
: GStructured( p ) { fromUnicodeString( s, cs ); }
~GToken() {}
protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
- QCString mToken;
+ TQCString mToken;
};
@@ -400,46 +400,46 @@ class KDE_EXPORT GPhraseList : public GStructured {
public:
GPhraseList() : GStructured() {}
GPhraseList( Content * p ) : GStructured( p ) {}
- GPhraseList( Content * p, const QCString & s )
+ GPhraseList( Content * p, const TQCString & s )
: GStructured( p ) { from7BitString(s); }
- GPhraseList( Content * p, const QString & s, const QCString & cs )
+ GPhraseList( Content * p, const TQString & s, const TQCString & cs )
: GStructured( p ) { fromUnicodeString( s, cs ); }
~GPhraseList() {}
protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
- QStringList mPhraseList;
+ TQStringList mPhraseList;
};
class KDE_EXPORT GDotAtom : public GStructured {
public:
GDotAtom() : GStructured() {}
GDotAtom( Content * p ) : GStructured( p ) {}
- GDotAtom( Content * p, const QCString & s )
+ GDotAtom( Content * p, const TQCString & s )
: GStructured( p ) { from7BitString(s); }
- GDotAtom( Content * p, const QString & s, const QCString & cs )
+ GDotAtom( Content * p, const TQString & s, const TQCString & cs )
: GStructured( p ) { fromUnicodeString( s, cs ); }
~GDotAtom() {}
protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
- QString mDotAtom;
+ TQString mDotAtom;
};
class KDE_EXPORT GParametrized : public GStructured {
public:
GParametrized() : GStructured() {}
GParametrized( Content * p ) : GStructured( p ) {}
- GParametrized( Content * p, const QCString & s )
+ GParametrized( Content * p, const TQCString & s )
: GStructured( p ) { from7BitString(s); }
- GParametrized( Content * p, const QString & s, const QCString & cs )
+ GParametrized( Content * p, const TQString & s, const TQCString & cs )
: GStructured( p ) { fromUnicodeString( s, cs ); }
~GParametrized() {}
protected:
- QMap<QString,QString> mParameterHash;
+ TQMap<TQString,TQString> mParameterHash;
private:
};
@@ -448,17 +448,17 @@ class KDE_EXPORT GContentType : public GParametrized {
public:
GContentType() : GParametrized() {}
GContentType( Content * p ) : GParametrized( p ) {}
- GContentType( Content * p, const QCString & s )
+ GContentType( Content * p, const TQCString & s )
: GParametrized( p ) { from7BitString(s); }
- GContentType( Content * p, const QString & s, const QCString & cs )
+ GContentType( Content * p, const TQString & s, const TQCString & cs )
: GParametrized( p ) { fromUnicodeString( s, cs ); }
~GContentType() {}
protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
- QCString mMimeType;
- QCString mMimeSubType;
+ TQCString mMimeType;
+ TQCString mMimeSubType;
};
@@ -466,16 +466,16 @@ class KDE_EXPORT GCISTokenWithParameterList : public GParametrized {
public:
GCISTokenWithParameterList() : GParametrized() {}
GCISTokenWithParameterList( Content * p ) : GParametrized( p ) {}
- GCISTokenWithParameterList( Content * p, const QCString & s )
+ GCISTokenWithParameterList( Content * p, const TQCString & s )
: GParametrized( p ) { from7BitString(s); }
- GCISTokenWithParameterList( Content * p, const QString & s, const QCString & cs )
+ GCISTokenWithParameterList( Content * p, const TQString & s, const TQCString & cs )
: GParametrized( p ) { fromUnicodeString( s, cs ); }
~GCISTokenWithParameterList() {}
protected:
bool parse( const char* & scursor, const char * const send, bool isCRLF=false );
- QCString mToken;
+ TQCString mToken;
};
@@ -493,9 +493,9 @@ class KDE_EXPORT ReturnPath : public Generics::GAddress {
public:
ReturnPath() : Generics::GAddress() {}
ReturnPath( Content * p ) : Generics::GAddress( p ) {}
- ReturnPath( Content * p, const QCString & s )
+ ReturnPath( Content * p, const TQCString & s )
: Generics::GAddress( p ) { from7BitString(s); }
- ReturnPath( Content * p, const QString & s, const QCString & cs )
+ ReturnPath( Content * p, const TQString & s, const TQCString & cs )
: Generics::GAddress( p ) { fromUnicodeString( s, cs ); }
~ReturnPath() {}
@@ -573,9 +573,9 @@ class KDE_EXPORT Generic : public Generics::GUnstructured {
: Generics::GUnstructured(), t_ype(0) { setType(t); }
Generic(const char *t, Content *p)
: Generics::GUnstructured( p ), t_ype(0) { setType(t); }
- Generic(const char *t, Content *p, const QCString &s)
+ Generic(const char *t, Content *p, const TQCString &s)
: Generics::GUnstructured( p, s ), t_ype(0) { setType(t); }
- Generic(const char *t, Content *p, const QString &s, const QCString &cs)
+ Generic(const char *t, Content *p, const TQString &s, const TQCString &cs)
: Generics::GUnstructured( p, s, cs ), t_ype(0) { setType(t); }
~Generic() { delete[] t_ype; }
@@ -596,16 +596,16 @@ class KDE_EXPORT Subject : public Generics::GUnstructured {
public:
Subject() : Generics::GUnstructured() {}
Subject( Content * p ) : Generics::GUnstructured( p ) {}
- Subject( Content * p, const QCString & s )
+ Subject( Content * p, const TQCString & s )
: Generics::GUnstructured( p, s ) {}
- Subject( Content * p, const QString & s, const QCString & cs )
+ Subject( Content * p, const TQString & s, const TQCString & cs )
: Generics::GUnstructured( p, s, cs ) {}
~Subject() {}
virtual const char* type() { return "Subject"; }
bool isReply() {
- return ( asUnicodeString().find( QString("Re:"), 0, false ) == 0 );
+ return ( asUnicodeString().find( TQString("Re:"), 0, false ) == 0 );
}
};
@@ -615,9 +615,9 @@ class KDE_EXPORT Organization : public Generics::GUnstructured {
public:
Organization() : Generics::GUnstructured() {}
Organization( Content * p ) : Generics::GUnstructured( p ) {}
- Organization( Content * p, const QCString & s )
+ Organization( Content * p, const TQCString & s )
: Generics::GUnstructured( p, s ) {};
- Organization( Content * p, const QString & s, const QCString & cs)
+ Organization( Content * p, const TQString & s, const TQCString & cs)
: Generics::GUnstructured( p, s, cs ) {}
~Organization() {}
@@ -639,14 +639,14 @@ class KDE_EXPORT Control : public Base {
public:
Control() : Base() {}
Control(Content *p) : Base(p) {}
- Control(Content *p, const QCString &s) : Base(p) { from7BitString(s); }
- Control(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); }
+ Control(Content *p, const TQCString &s) : Base(p) { from7BitString(s); }
+ Control(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); }
~Control() {}
- virtual void from7BitString(const QCString &s);
- virtual QCString as7BitString(bool incType=true);
- virtual void fromUnicodeString(const QString &s, const QCString&);
- virtual QString asUnicodeString();
+ virtual void from7BitString(const TQCString &s);
+ virtual TQCString as7BitString(bool incType=true);
+ virtual void fromUnicodeString(const TQString &s, const TQCString&);
+ virtual TQString asUnicodeString();
virtual void clear() { c_trlMsg.truncate(0); }
virtual bool isEmpty() { return (c_trlMsg.isEmpty()); }
virtual const char* type() { return "Control"; }
@@ -654,7 +654,7 @@ class KDE_EXPORT Control : public Base {
bool isCancel() { return (c_trlMsg.find("cancel", 0, false)!=-1); }
protected:
- QCString c_trlMsg;
+ TQCString c_trlMsg;
};
@@ -665,14 +665,14 @@ class KDE_EXPORT Date : public Base {
Date() : Base(), t_ime(0) {}
Date(Content *p) : Base(p), t_ime(0) {}
Date(Content *p, time_t t) : Base(p), t_ime(t) {}
- Date(Content *p, const QCString &s) : Base(p) { from7BitString(s); }
- Date(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); }
+ Date(Content *p, const TQCString &s) : Base(p) { from7BitString(s); }
+ Date(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); }
~Date() {}
- virtual void from7BitString(const QCString &s);
- virtual QCString as7BitString(bool incType=true);
- virtual void fromUnicodeString(const QString &s, const QCString&);
- virtual QString asUnicodeString();
+ virtual void from7BitString(const TQCString &s);
+ virtual TQCString as7BitString(bool incType=true);
+ virtual void fromUnicodeString(const TQString &s, const TQCString&);
+ virtual TQString asUnicodeString();
virtual void clear() { t_ime=0; }
virtual bool isEmpty() { return (t_ime==0); }
virtual const char* type() { return "Date"; }
@@ -680,7 +680,7 @@ class KDE_EXPORT Date : public Base {
time_t unixTime() { return t_ime; }
void setUnixTime(time_t t) { t_ime=t; }
void setUnixTime() { t_ime=time(0); }
- QDateTime qdt();
+ TQDateTime qdt();
int ageInDays();
protected:
@@ -695,24 +695,24 @@ class KDE_EXPORT Newsgroups : public Base {
public:
Newsgroups() : Base() {}
Newsgroups(Content *p) : Base(p) {}
- Newsgroups(Content *p, const QCString &s) : Base(p) { from7BitString(s); }
- Newsgroups(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); }
+ Newsgroups(Content *p, const TQCString &s) : Base(p) { from7BitString(s); }
+ Newsgroups(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); }
~Newsgroups() {}
- virtual void from7BitString(const QCString &s);
- virtual QCString as7BitString(bool incType=true);
- virtual void fromUnicodeString(const QString &s, const QCString&);
- virtual QString asUnicodeString();
+ virtual void from7BitString(const TQCString &s);
+ virtual TQCString as7BitString(bool incType=true);
+ virtual void fromUnicodeString(const TQString &s, const TQCString&);
+ virtual TQString asUnicodeString();
virtual void clear() { g_roups.resize(0); }
virtual bool isEmpty() { return g_roups.isEmpty(); }
virtual const char* type() { return "Newsgroups"; }
- QCString firstGroup();
+ TQCString firstGroup();
bool isCrossposted() { return ( g_roups.find(',')>-1 ); }
- QStringList getGroups();
+ TQStringList getGroups();
protected:
- QCString g_roups;
+ TQCString g_roups;
};
@@ -723,8 +723,8 @@ class KDE_EXPORT FollowUpTo : public Newsgroups {
public:
FollowUpTo() : Newsgroups() {}
FollowUpTo(Content *p) : Newsgroups(p) {}
- FollowUpTo(Content *p, const QCString &s) : Newsgroups(p,s) {}
- FollowUpTo(Content *p, const QString &s) : Newsgroups(p,s) {}
+ FollowUpTo(Content *p, const TQCString &s) : Newsgroups(p,s) {}
+ FollowUpTo(Content *p, const TQString &s) : Newsgroups(p,s) {}
~FollowUpTo() {}
virtual const char* type() { return "Followup-To"; }
@@ -739,14 +739,14 @@ class KDE_EXPORT Lines : public Base {
Lines() : Base(),l_ines(-1) {}
Lines(Content *p) : Base(p),l_ines(-1) {}
Lines(Content *p, unsigned int i) : Base(p),l_ines(i) {}
- Lines(Content *p, const QCString &s) : Base(p) { from7BitString(s); }
- Lines(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); }
+ Lines(Content *p, const TQCString &s) : Base(p) { from7BitString(s); }
+ Lines(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); }
~Lines() {}
- virtual void from7BitString(const QCString &s);
- virtual QCString as7BitString(bool incType=true);
- virtual void fromUnicodeString(const QString &s, const QCString&);
- virtual QString asUnicodeString();
+ virtual void from7BitString(const TQCString &s);
+ virtual TQCString as7BitString(bool incType=true);
+ virtual void fromUnicodeString(const TQString &s, const TQCString&);
+ virtual TQString asUnicodeString();
virtual void clear() { l_ines=-1; }
virtual bool isEmpty() { return (l_ines==-1); }
virtual const char* type() { return "Lines"; }
@@ -767,20 +767,20 @@ class KDE_EXPORT UserAgent : public Base {
public:
UserAgent() : Base() {}
UserAgent(Content *p) : Base(p) {}
- UserAgent(Content *p, const QCString &s) : Base(p) { from7BitString(s); }
- UserAgent(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); }
+ UserAgent(Content *p, const TQCString &s) : Base(p) { from7BitString(s); }
+ UserAgent(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); }
~UserAgent() {}
- virtual void from7BitString(const QCString &s);
- virtual QCString as7BitString(bool incType=true);
- virtual void fromUnicodeString(const QString &s, const QCString&);
- virtual QString asUnicodeString();
+ virtual void from7BitString(const TQCString &s);
+ virtual TQCString as7BitString(bool incType=true);
+ virtual void fromUnicodeString(const TQString &s, const TQCString&);
+ virtual TQString asUnicodeString();
virtual void clear() { u_agent.resize(0); }
virtual bool isEmpty() { return (u_agent.isEmpty()); }
virtual const char* type() { return "User-Agent"; }
protected:
- QCString u_agent;
+ TQCString u_agent;
};
@@ -808,7 +808,7 @@ typedef Headers::Base* (*headerCreator)(void);
@see KMime::Headers::Base KMime::Headers::Generic
*/
-class HeaderFactory : public QAsciiDict<headerCreator>
+class HeaderFactory : public TQAsciiDict<headerCreator>
{
private:
HeaderFactory();
@@ -834,7 +834,7 @@ public:
convenience. It differs from the above only in what arguments it
takes.
*/
- static Headers::Base* create( const QCString& aType )
+ static Headers::Base* create( const TQCString& aType )
{
return create( aType.data() );
}