summaryrefslogtreecommitdiffstats
path: root/kioslaves/imap4/mimeheader.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/imap4/mimeheader.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'kioslaves/imap4/mimeheader.h')
-rw-r--r--kioslaves/imap4/mimeheader.h184
1 files changed, 92 insertions, 92 deletions
diff --git a/kioslaves/imap4/mimeheader.h b/kioslaves/imap4/mimeheader.h
index a56ec6cb8..0eb46630b 100644
--- a/kioslaves/imap4/mimeheader.h
+++ b/kioslaves/imap4/mimeheader.h
@@ -18,8 +18,8 @@
#ifndef MIMEHEADER_H
#define MIMEHEADER_H
-#include <qptrlist.h>
-#include <qdict.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
#include "mimehdrline.h"
#include "mimeio.h"
@@ -40,75 +40,75 @@ public:
virtual void outputPart (mimeIO &);
- QCString outputParameter (QDict < QString > *);
+ TQCString outputParameter (TQDict < TQString > *);
- int parsePart (mimeIO &, const QString&);
- int parseBody (mimeIO &, QCString &, const QString&, bool mbox = false);
+ int parsePart (mimeIO &, const TQString&);
+ int parseBody (mimeIO &, TQCString &, const TQString&, bool mbox = false);
// parse a header. returns true if it had a leading 'From ' line
bool parseHeader (mimeIO &);
- QString getDispositionParm (const QCString&);
- void setDispositionParm (const QCString&, const QString&);
- QDictIterator < QString > getDispositionIterator ();
+ TQString getDispositionParm (const TQCString&);
+ void setDispositionParm (const TQCString&, const TQString&);
+ TQDictIterator < TQString > getDispositionIterator ();
- QString getTypeParm (const QCString&);
- void setTypeParm (const QCString&, const QString&);
- QDictIterator < QString > getTypeIterator ();
+ TQString getTypeParm (const TQCString&);
+ void setTypeParm (const TQCString&, const TQString&);
+ TQDictIterator < TQString > getTypeIterator ();
// recursively serialize all important contents to the QDataStream
- void serialize(QDataStream& stream);
+ void serialize(TQDataStream& stream);
- const QCString& getType ()
+ const TQCString& getType ()
{
return contentType;
}
- void setType (const QCString & _str)
+ void setType (const TQCString & _str)
{
contentType = _str;
}
- const QCString& getDescription ()
+ const TQCString& getDescription ()
{
return _contentDescription;
}
- void setDescription (const QCString & _str)
+ void setDescription (const TQCString & _str)
{
_contentDescription = _str;
}
- QCString getDisposition ()
+ TQCString getDisposition ()
{
return _contentDisposition;
}
- void setDisposition (const QCString & _str)
+ void setDisposition (const TQCString & _str)
{
_contentDisposition = _str;
}
- QCString getEncoding ()
+ TQCString getEncoding ()
{
return contentEncoding;
}
- void setEncoding (const QCString & _str)
+ void setEncoding (const TQCString & _str)
{
contentEncoding = _str;
}
- QCString getMD5 ()
+ TQCString getMD5 ()
{
return contentMD5;
}
- void setMD5 (const QCString & _str)
+ void setMD5 (const TQCString & _str)
{
contentMD5 = _str;
}
- QCString getID ()
+ TQCString getID ()
{
return contentID;
}
- void setID (const QCString & _str)
+ void setID (const TQCString & _str)
{
contentID = _str;
}
@@ -122,44 +122,44 @@ public:
contentLength = _len;
}
- const QString & getPartSpecifier ()
+ const TQString & getPartSpecifier ()
{
return partSpecifier;
}
- void setPartSpecifier (const QString & _str)
+ void setPartSpecifier (const TQString & _str)
{
partSpecifier = _str;
}
- QPtrListIterator < mimeHdrLine > getOriginalIterator ();
- QPtrListIterator < mimeHdrLine > getAdditionalIterator ();
- void setContent (const QCString &aContent)
+ TQPtrListIterator < mimeHdrLine > getOriginalIterator ();
+ TQPtrListIterator < mimeHdrLine > getAdditionalIterator ();
+ void setContent (const TQCString &aContent)
{
mimeContent = aContent;
}
- QCString getContent ()
+ TQCString getContent ()
{
return mimeContent;
}
- QCString getBody ()
+ TQCString getBody ()
{
return preMultipartBody + postMultipartBody;
}
- QCString getPreBody ()
+ TQCString getPreBody ()
{
return preMultipartBody;
}
- void setPreBody (QCString & inBody)
+ void setPreBody (TQCString & inBody)
{
preMultipartBody = inBody;
}
- QCString getPostBody ()
+ TQCString getPostBody ()
{
return postMultipartBody;
}
- void setPostBody (QCString & inBody)
+ void setPostBody (TQCString & inBody)
{
postMultipartBody = inBody;
contentLength = inBody.length ();
@@ -181,9 +181,9 @@ public:
{
nestedParts.append (inPart);
}
- QPtrListIterator < mimeHeader > getNestedIterator ()
+ TQPtrListIterator < mimeHeader > getNestedIterator ()
{
- return QPtrListIterator < mimeHeader > (nestedParts);
+ return TQPtrListIterator < mimeHeader > (nestedParts);
}
// clears all parts and deletes them from memory
@@ -205,7 +205,7 @@ public:
}
// return the specified body part or NULL
- mimeHeader *bodyPart (const QString &);
+ mimeHeader *bodyPart (const TQString &);
#ifdef KMAIL_COMPATIBLE
ulong msgSize ()
@@ -222,115 +222,115 @@ public:
(*ret) = nestedParts.at (which);
return nestedParts.at (which);
}
- void write (const QString &)
+ void write (const TQString &)
{
}
- QString typeStr ()
+ TQString typeStr ()
{
- return QString (contentType.left (contentType.find ('/')));
+ return TQString (contentType.left (contentType.find ('/')));
}
- void setTypeStr (const QString & _str)
+ void setTypeStr (const TQString & _str)
{
- contentType = QCString (_str.latin1 ()) + "/" + subtypeStr ().latin1 ();
+ contentType = TQCString (_str.latin1 ()) + "/" + subtypeStr ().latin1 ();
}
- QString subtypeStr ()
+ TQString subtypeStr ()
{
- return QString (contentType.
+ return TQString (contentType.
right (contentType.length () - contentType.find ('/') -
1));
}
- void setSubtypeStr (const QString & _str)
+ void setSubtypeStr (const TQString & _str)
{
- contentType = QCString (typeStr ().latin1 ()) + "/" + _str.latin1 ();
+ contentType = TQCString (typeStr ().latin1 ()) + "/" + _str.latin1 ();
}
- QString cteStr ()
+ TQString cteStr ()
{
- return QString (getEncoding ());
+ return TQString (getEncoding ());
}
- void setCteStr (const QString & _str)
+ void setCteStr (const TQString & _str)
{
setEncoding (_str.latin1 ());
}
- QString contentDisposition ()
+ TQString contentDisposition ()
{
- return QString (_contentDisposition);
+ return TQString (_contentDisposition);
}
- QString body ()
+ TQString body ()
{
- return QString (postMultipartBody);
+ return TQString (postMultipartBody);
}
- QString charset ()
+ TQString charset ()
{
return getTypeParm ("charset");
}
- QString bodyDecoded ();
- void setBodyEncoded (const QByteArray &);
- void setBodyEncodedBinary (const QByteArray &);
- QByteArray bodyDecodedBinary ();
- QString name ()
+ TQString bodyDecoded ();
+ void setBodyEncoded (const TQByteArray &);
+ void setBodyEncodedBinary (const TQByteArray &);
+ TQByteArray bodyDecodedBinary ();
+ TQString name ()
{
- return QString (getTypeParm ("name"));
+ return TQString (getTypeParm ("name"));
}
- void setName (const QString & _str)
+ void setName (const TQString & _str)
{
setTypeParm ("name", _str);
}
- QString fileName ()
+ TQString fileName ()
{
- return QString (getDispositionParm ("filename"));
+ return TQString (getDispositionParm ("filename"));
}
- QString contentDescription ()
+ TQString contentDescription ()
{
- return QString (rfcDecoder::decodeRFC2047String (_contentDescription));
+ return TQString (rfcDecoder::decodeRFC2047String (_contentDescription));
}
- void setContentDescription (const QString & _str)
+ void setContentDescription (const TQString & _str)
{
_contentDescription = rfcDecoder::encodeRFC2047String (_str).latin1 ();
}
- QString msgIdMD5 ()
+ TQString msgIdMD5 ()
{
- return QString (contentMD5);
+ return TQString (contentMD5);
}
- QString iconName ();
- QString magicSetType (bool aAutoDecode = true);
- QString headerAsString ();
+ TQString iconName ();
+ TQString magicSetType (bool aAutoDecode = true);
+ TQString headerAsString ();
ulong size ()
{
return 0;
}
- void fromString (const QByteArray &)
+ void fromString (const TQByteArray &)
{;
}
- void setContentDisposition (const QString & _str)
+ void setContentDisposition (const TQString & _str)
{
setDisposition (_str.latin1 ());
}
#endif
protected:
- static void addParameter (const QCString&, QDict < QString > *);
- static QString getParameter (const QCString&, QDict < QString > *);
- static void setParameter (const QCString&, const QString&, QDict < QString > *);
+ static void addParameter (const TQCString&, TQDict < TQString > *);
+ static TQString getParameter (const TQCString&, TQDict < TQString > *);
+ static void setParameter (const TQCString&, const TQString&, TQDict < TQString > *);
- QPtrList < mimeHdrLine > originalHdrLines;
+ TQPtrList < mimeHdrLine > originalHdrLines;
private:
- QPtrList < mimeHdrLine > additionalHdrLines;
- QDict < QString > typeList;
- QDict < QString > dispositionList;
- QCString contentType;
- QCString _contentDisposition;
- QCString contentEncoding;
- QCString _contentDescription;
- QCString contentID;
- QCString contentMD5;
+ TQPtrList < mimeHdrLine > additionalHdrLines;
+ TQDict < TQString > typeList;
+ TQDict < TQString > dispositionList;
+ TQCString contentType;
+ TQCString _contentDisposition;
+ TQCString contentEncoding;
+ TQCString _contentDescription;
+ TQCString contentID;
+ TQCString contentMD5;
unsigned long contentLength;
- QCString mimeContent;
- QCString preMultipartBody;
- QCString postMultipartBody;
+ TQCString mimeContent;
+ TQCString preMultipartBody;
+ TQCString postMultipartBody;
mimeHeader *nestedMessage;
- QPtrList < mimeHeader > nestedParts;
- QString partSpecifier;
+ TQPtrList < mimeHeader > nestedParts;
+ TQString partSpecifier;
};