diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkmime/kmime_headers_obs.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkmime/kmime_headers_obs.h')
-rw-r--r-- | libkmime/kmime_headers_obs.h | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/libkmime/kmime_headers_obs.h b/libkmime/kmime_headers_obs.h index 41be1692a..3455c00a9 100644 --- a/libkmime/kmime_headers_obs.h +++ b/libkmime/kmime_headers_obs.h @@ -28,22 +28,22 @@ class KDE_EXPORT MessageID : public Base { public: MessageID() : Base() {} MessageID(Content *p) : Base(p) {} - MessageID(Content *p, const QCString &s) : Base(p) { from7BitString(s); } - MessageID(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); } + MessageID(Content *p, const TQCString &s) : Base(p) { from7BitString(s); } + MessageID(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); } ~MessageID() {} - 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() { m_id.resize(0); } virtual bool isEmpty() { return (m_id.isEmpty()); } virtual const char* type() { return "Message-Id"; } - void generate(const QCString &fqdn); + void generate(const TQCString &fqdn); protected: - QCString m_id; + TQCString m_id; }; @@ -53,8 +53,8 @@ class KDE_EXPORT Supersedes : public MessageID { public: Supersedes() : MessageID() {} Supersedes(Content *p) : MessageID(p) {} - Supersedes(Content *p, const QCString &s) : MessageID(p,s) {} - Supersedes(Content *p, const QString &s) : MessageID(p,s) {} + Supersedes(Content *p, const TQCString &s) : MessageID(p,s) {} + Supersedes(Content *p, const TQString &s) : MessageID(p,s) {} ~Supersedes() {} virtual const char* type() { return "Supersedes"; } @@ -68,34 +68,34 @@ class KDE_EXPORT AddressField : public Base { public: AddressField() : Base() {} AddressField(Content *p) : Base(p) {} - AddressField(Content *p, const QCString &s) : Base(p) { from7BitString(s); } - AddressField(Content *p, const QString &s, const QCString &cs) : Base(p) { fromUnicodeString(s, cs); } + AddressField(Content *p, const TQCString &s) : Base(p) { from7BitString(s); } + AddressField(Content *p, const TQString &s, const TQCString &cs) : Base(p) { fromUnicodeString(s, cs); } AddressField(const AddressField &a): Base(a.p_arent) { n_ame=a.n_ame; e_mail=a.e_mail.copy(); e_ncCS=a.e_ncCS; } ~AddressField() {} AddressField& operator=(const AddressField &a) { n_ame=a.n_ame; e_mail=a.e_mail.copy(); e_ncCS=a.e_ncCS; return (*this); } - virtual void from7BitString(const QCString &s); - virtual QCString as7BitString(bool incType=true); - virtual void fromUnicodeString(const QString &s, const QCString &cs); - virtual QString asUnicodeString(); + virtual void from7BitString(const TQCString &s); + virtual TQCString as7BitString(bool incType=true); + virtual void fromUnicodeString(const TQString &s, const TQCString &cs); + virtual TQString asUnicodeString(); virtual void clear() { n_ame.truncate(0); e_mail.resize(0); } virtual bool isEmpty() { return (e_mail.isEmpty() && n_ame.isEmpty()); } bool hasName() { return ( !n_ame.isEmpty() ); } bool hasEmail() { return ( !e_mail.isEmpty() ); } - QString name() { return n_ame; } - QCString nameAs7Bit(); - QCString email() { return e_mail; } - void setName(const QString &s) { n_ame=s; } - void setNameFrom7Bit(const QCString &s); - void setEmail(const QCString &s) { e_mail=s; } + TQString name() { return n_ame; } + TQCString nameAs7Bit(); + TQCString email() { return e_mail; } + void setName(const TQString &s) { n_ame=s; } + void setNameFrom7Bit(const TQCString &s); + void setEmail(const TQCString &s) { e_mail=s; } protected: - QString n_ame; - QCString e_mail; + TQString n_ame; + TQCString e_mail; }; -typedef QPtrList<AddressField> ObsAddressList; +typedef TQPtrList<AddressField> ObsAddressList; /** Represent a "From" header */ class KDE_EXPORT From : public AddressField { @@ -103,8 +103,8 @@ class KDE_EXPORT From : public AddressField { public: From() : AddressField() {} From(Content *p) : AddressField(p) {} - From(Content *p, const QCString &s) : AddressField(p,s) {} - From(Content *p, const QString &s, const QCString &cs) : AddressField(p,s,cs) {} + From(Content *p, const TQCString &s) : AddressField(p,s) {} + From(Content *p, const TQString &s, const TQCString &cs) : AddressField(p,s,cs) {} ~From() {} virtual const char* type() { return "From"; } @@ -117,8 +117,8 @@ class KDE_EXPORT ReplyTo : public AddressField { public: ReplyTo() : AddressField() {} ReplyTo(Content *p) : AddressField(p) {} - ReplyTo(Content *p, const QCString &s) : AddressField(p,s) {} - ReplyTo(Content *p, const QString &s, const QCString &cs) : AddressField(p,s,cs) {} + ReplyTo(Content *p, const TQCString &s) : AddressField(p,s) {} + ReplyTo(Content *p, const TQString &s, const TQCString &cs) : AddressField(p,s,cs) {} ~ReplyTo() {} virtual const char* type() { return "Reply-To"; } @@ -133,8 +133,8 @@ class KDE_EXPORT MailCopiesTo : public AddressField { public: MailCopiesTo() : AddressField() {} MailCopiesTo(Content *p) : AddressField(p) {} - MailCopiesTo(Content *p, const QCString &s) : AddressField(p,s) {} - MailCopiesTo(Content *p, const QString &s, const QCString &cs) : AddressField(p,s,cs) {} + MailCopiesTo(Content *p, const TQCString &s) : AddressField(p,s) {} + MailCopiesTo(Content *p, const TQString &s, const TQCString &cs) : AddressField(p,s,cs) {} ~MailCopiesTo() {} bool isValid(); @@ -151,23 +151,23 @@ class KDE_EXPORT To : public Base { public: To() : Base(),a_ddrList(0) {} To(Content *p) : Base(p),a_ddrList(0) {} - To(Content *p, const QCString &s) : Base(p),a_ddrList(0) { from7BitString(s); } - To(Content *p, const QString &s, const QCString &cs) : Base(p),a_ddrList(0) { fromUnicodeString(s,cs); } + To(Content *p, const TQCString &s) : Base(p),a_ddrList(0) { from7BitString(s); } + To(Content *p, const TQString &s, const TQCString &cs) : Base(p),a_ddrList(0) { fromUnicodeString(s,cs); } ~To() { delete a_ddrList; } - virtual void from7BitString(const QCString &s); - virtual QCString as7BitString(bool incType=true); - virtual void fromUnicodeString(const QString &s, const QCString &cs); - virtual QString asUnicodeString(); + virtual void from7BitString(const TQCString &s); + virtual TQCString as7BitString(bool incType=true); + virtual void fromUnicodeString(const TQString &s, const TQCString &cs); + virtual TQString asUnicodeString(); virtual void clear() { delete a_ddrList; a_ddrList=0; } virtual bool isEmpty() { return (!a_ddrList || a_ddrList->isEmpty() || a_ddrList->first()->isEmpty()); } virtual const char* type() { return "To"; } void addAddress(const AddressField &a); - void emails(QStrList *l); - void names(QStringList *l); - void displayNames(QStringList *l); + void emails(TQStrList *l); + void names(TQStringList *l); + void displayNames(TQStringList *l); protected: ObsAddressList *a_ddrList; @@ -181,8 +181,8 @@ class KDE_EXPORT CC : public To { public: CC() : To() {} CC(Content *p) : To(p) {} - CC(Content *p, const QCString &s) : To(p,s) {} - CC(Content *p, const QString &s, const QCString &cs) : To(p,s,cs) {} + CC(Content *p, const TQCString &s) : To(p,s) {} + CC(Content *p, const TQString &s, const TQCString &cs) : To(p,s,cs) {} ~CC() {} virtual const char* type() { return "CC"; } @@ -196,8 +196,8 @@ class KDE_EXPORT BCC : public To { public: BCC() : To() {} BCC(Content *p) : To(p) {} - BCC(Content *p, const QCString &s) : To(p,s) {} - BCC(Content *p, const QString &s, const QCString &cs) : To(p,s,cs) {} + BCC(Content *p, const TQCString &s) : To(p,s) {} + BCC(Content *p, const TQString &s, const TQCString &cs) : To(p,s,cs) {} ~BCC() {} virtual const char* type() { return "BCC"; } @@ -210,26 +210,26 @@ class KDE_EXPORT References : public Base { public: References() : Base(),p_os(-1) {} References(Content *p) : Base(p),p_os(-1) {} - References(Content *p, const QCString &s) : Base(p),p_os(-1) { from7BitString(s); } - References(Content *p, const QString &s) : Base(p),p_os(-1) { fromUnicodeString(s, Latin1); } + References(Content *p, const TQCString &s) : Base(p),p_os(-1) { from7BitString(s); } + References(Content *p, const TQString &s) : Base(p),p_os(-1) { fromUnicodeString(s, Latin1); } ~References() {} - 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() { r_ef.resize(0); p_os=0; } virtual bool isEmpty() { return (r_ef.isEmpty()); } virtual const char* type() { return "References"; } int count(); - QCString first(); - QCString next(); - QCString at(unsigned int i); - void append(const QCString &s); + TQCString first(); + TQCString next(); + TQCString at(unsigned int i); + void append(const TQCString &s); protected: - QCString r_ef; + TQCString r_ef; int p_os; }; @@ -240,24 +240,24 @@ class KDE_EXPORT ContentType : public Base { public: ContentType() : Base(),m_imeType("invalid/invalid"),c_ategory(CCsingle) {} ContentType(Content *p) : Base(p),m_imeType("invalid/invalid"),c_ategory(CCsingle) {} - ContentType(Content *p, const QCString &s) : Base(p) { from7BitString(s); } - ContentType(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); } + ContentType(Content *p, const TQCString &s) : Base(p) { from7BitString(s); } + ContentType(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); } ~ContentType() {} - 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() { m_imeType.resize(0); p_arams.resize(0); } virtual bool isEmpty() { return (m_imeType.isEmpty()); } virtual const char* type() { return "Content-Type"; } //mime-type handling - QCString mimeType() { return m_imeType; } - QCString mediaType(); - QCString subType(); - void setMimeType(const QCString &s); + TQCString mimeType() { return m_imeType; } + TQCString mediaType(); + TQCString subType(); + void setMimeType(const TQCString &s); bool isMediatype(const char *s); bool isSubtype(const char *s); bool isText(); @@ -268,14 +268,14 @@ class KDE_EXPORT ContentType : public Base { bool isPartial(); //parameter handling - QCString charset(); - void setCharset(const QCString &s); - QCString boundary(); - void setBoundary(const QCString &s); - QString name(); - void setName(const QString &s, const QCString &cs); - QCString id(); - void setId(const QCString &s); + TQCString charset(); + void setCharset(const TQCString &s); + TQCString boundary(); + void setBoundary(const TQCString &s); + TQString name(); + void setName(const TQString &s, const TQCString &cs); + TQCString id(); + void setId(const TQCString &s); int partialNumber(); int partialCount(); void setPartialParams(int total, int number); @@ -285,9 +285,9 @@ class KDE_EXPORT ContentType : public Base { void setCategory(contentCategory c) { c_ategory=c; } protected: - QCString getParameter(const char *name); - void setParameter(const QCString &name, const QCString &value, bool doubleQuotes=false); - QCString m_imeType, p_arams; + TQCString getParameter(const char *name); + void setParameter(const TQCString &name, const TQCString &value, bool doubleQuotes=false); + TQCString m_imeType, p_arams; contentCategory c_ategory; }; @@ -299,14 +299,14 @@ class KDE_EXPORT CTEncoding : public Base { public: CTEncoding() : Base(),c_te(CE7Bit),d_ecoded(true) {} CTEncoding(Content *p) : Base(p),c_te(CE7Bit),d_ecoded(true) {} - CTEncoding(Content *p, const QCString &s) : Base(p) { from7BitString(s); } - CTEncoding(Content *p, const QString &s) : Base(p) { fromUnicodeString(s, Latin1); } + CTEncoding(Content *p, const TQCString &s) : Base(p) { from7BitString(s); } + CTEncoding(Content *p, const TQString &s) : Base(p) { fromUnicodeString(s, Latin1); } ~CTEncoding() {} - 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() { d_ecoded=true; c_te=CE7Bit; } virtual const char* type() { return "Content-Transfer-Encoding"; } @@ -329,14 +329,14 @@ class KDE_EXPORT CDisposition : public Base { public: CDisposition() : Base(),d_isp(CDinline) {} CDisposition(Content *p) : Base(p),d_isp(CDinline) {} - CDisposition(Content *p, const QCString &s) : Base(p) { from7BitString(s); } - CDisposition(Content *p, const QString &s, const QCString &cs) : Base(p) { fromUnicodeString(s, cs); } + CDisposition(Content *p, const TQCString &s) : Base(p) { from7BitString(s); } + CDisposition(Content *p, const TQString &s, const TQCString &cs) : Base(p) { fromUnicodeString(s, cs); } ~CDisposition() {} - virtual void from7BitString(const QCString &s); - virtual QCString as7BitString(bool incType=true); - virtual void fromUnicodeString(const QString &s, const QCString &cs); - virtual QString asUnicodeString(); + virtual void from7BitString(const TQCString &s); + virtual TQCString as7BitString(bool incType=true); + virtual void fromUnicodeString(const TQString &s, const TQCString &cs); + virtual TQString asUnicodeString(); virtual void clear() { f_ilename.truncate(0); d_isp=CDinline; } virtual const char* type() { return "Content-Disposition"; } @@ -344,12 +344,12 @@ class KDE_EXPORT CDisposition : public Base { void setDisposition(contentDisposition d) { d_isp=d; } bool isAttachment() { return (d_isp==CDattachment); } - QString filename() { return f_ilename; } - void setFilename(const QString &s) { f_ilename=s; } + TQString filename() { return f_ilename; } + void setFilename(const TQString &s) { f_ilename=s; } protected: contentDisposition d_isp; - QString f_ilename; + TQString f_ilename; }; @@ -360,9 +360,9 @@ class KDE_EXPORT CDescription : public Generics::GUnstructured { public: CDescription() : Generics::GUnstructured() {} CDescription( Content * p ) : Generics::GUnstructured( p ) {} - CDescription( Content * p, const QCString & s ) + CDescription( Content * p, const TQCString & s ) : Generics::GUnstructured( p, s ) {}; - CDescription( Content * p, const QString & s, const QCString & cs ) + CDescription( Content * p, const TQString & s, const TQCString & cs ) : Generics::GUnstructured( p, s, cs ) {} ~CDescription() {} |