summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_parsers.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_parsers.h')
-rw-r--r--libkmime/kmime_parsers.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/libkmime/kmime_parsers.h b/libkmime/kmime_parsers.h
index 752bed804..b16b0b6a7 100644
--- a/libkmime/kmime_parsers.h
+++ b/libkmime/kmime_parsers.h
@@ -16,9 +16,9 @@
#ifndef __KMIME_PARSERS__
#define __KMIME_PARSERS__
-#include <qvaluelist.h>
-#include <qcstring.h>
-#include <qstrlist.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
+#include <tqstrlist.h>
namespace KMime {
@@ -31,17 +31,17 @@ namespace Parser {
class MultiPart {
public:
- MultiPart(const QCString &src, const QCString &boundary);
+ MultiPart(const TQCString &src, const TQCString &boundary);
~MultiPart() {};
bool parse();
- QValueList<QCString> parts() { return p_arts; }
- QCString preamble() { return p_reamble; }
- QCString epilouge() { return e_pilouge; }
+ TQValueList<TQCString> parts() { return p_arts; }
+ TQCString preamble() { return p_reamble; }
+ TQCString epilouge() { return e_pilouge; }
protected:
- QCString s_rc, b_oundary, p_reamble, e_pilouge;
- QValueList<QCString> p_arts;
+ TQCString s_rc, b_oundary, p_reamble, e_pilouge;
+ TQValueList<TQCString> p_arts;
};
@@ -52,23 +52,23 @@ protected:
class NonMimeParser {
public:
- NonMimeParser(const QCString &src);
+ NonMimeParser(const TQCString &src);
virtual ~NonMimeParser() {};
virtual bool parse() = 0;
bool isPartial() { return (p_artNr>-1 && t_otalNr>-1 && t_otalNr!=1); }
int partialNumber() { return p_artNr; }
int partialCount() { return t_otalNr; }
bool hasTextPart() { return (t_ext.length()>1); }
- QCString textPart() { return t_ext; }
- QStrList binaryParts() { return b_ins; }
- QStrList filenames() { return f_ilenames; }
- QStrList mimeTypes() { return m_imeTypes; }
+ TQCString textPart() { return t_ext; }
+ TQStrList binaryParts() { return b_ins; }
+ TQStrList filenames() { return f_ilenames; }
+ TQStrList mimeTypes() { return m_imeTypes; }
protected:
- static QCString guessMimeType(const QCString& fileName);
+ static TQCString guessMimeType(const TQCString& fileName);
- QCString s_rc, t_ext;
- QStrList b_ins, f_ilenames, m_imeTypes;
+ TQCString s_rc, t_ext;
+ TQStrList b_ins, f_ilenames, m_imeTypes;
int p_artNr, t_otalNr;
};
@@ -80,12 +80,12 @@ protected:
class UUEncoded : public NonMimeParser {
public:
- UUEncoded(const QCString &src, const QCString &subject);
+ UUEncoded(const TQCString &src, const TQCString &subject);
virtual bool parse();
protected:
- QCString s_ubject;
+ TQCString s_ubject;
};
@@ -97,14 +97,14 @@ protected:
class YENCEncoded : public NonMimeParser {
public:
- YENCEncoded(const QCString &src);
+ YENCEncoded(const TQCString &src);
virtual bool parse();
- QValueList<QByteArray> binaryParts() { return b_ins; }
+ TQValueList<TQByteArray> binaryParts() { return b_ins; }
protected:
- QValueList<QByteArray> b_ins;
- static bool yencMeta( QCString& src, const QCString& name, int* value);
+ TQValueList<TQByteArray> b_ins;
+ static bool yencMeta( TQCString& src, const TQCString& name, int* value);
};