summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_content.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_content.h')
-rw-r--r--libkmime/kmime_content.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/libkmime/kmime_content.h b/libkmime/kmime_content.h
index fb28b5e61..1d2aac2d3 100644
--- a/libkmime/kmime_content.h
+++ b/libkmime/kmime_content.h
@@ -29,7 +29,7 @@ class KMime::Headers::List;
#include "kmime_util.h"
#include "kmime_headers.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
namespace KMime {
@@ -59,10 +59,10 @@ class Base {
class KDE_EXPORT Content : public Base {
public:
- typedef QPtrList<KMime::Content> List;
+ typedef TQPtrList<KMime::Content> List;
Content();
- Content(const QCString &h, const QCString &b);
+ Content(const TQCString &h, const TQCString &b);
virtual ~Content();
//type
@@ -70,16 +70,16 @@ class KDE_EXPORT Content : public Base {
//content handling
bool hasContent() { return ( !h_ead.isEmpty() && (!b_ody.isEmpty() || (c_ontents && !c_ontents->isEmpty())) ); }
- void setContent(QStrList *l);
- void setContent(const QCString &s);
+ void setContent(TQStrList *l);
+ void setContent(const TQCString &s);
virtual void parse();
virtual void assemble();
virtual void clear();
//header access
- QCString head() { return h_ead; }
+ TQCString head() { return h_ead; }
// extracts and removes the next header from head. The caller has to delete the returned header;
- Headers::Generic* getNextHeader(QCString &head);
+ Headers::Generic* getNextHeader(TQCString &head);
virtual Headers::Base* getHeaderByType(const char *type);
virtual void setHeader(Headers::Base *h);
virtual bool removeHeader(const char *type);
@@ -93,15 +93,15 @@ class KDE_EXPORT Content : public Base {
int size();
int storageSize();
int lineCount();
- QCString body() { return b_ody; }
- void setBody( const QCString & str ) { b_ody = str; }
- QCString encodedContent(bool useCrLf=false);
- QByteArray decodedContent();
- void decodedText(QString &s, bool trimText=false,
+ TQCString body() { return b_ody; }
+ void setBody( const TQCString & str ) { b_ody = str; }
+ TQCString encodedContent(bool useCrLf=false);
+ TQByteArray decodedContent();
+ void decodedText(TQString &s, bool trimText=false,
bool removeTrailingNewlines=false);
- void decodedText(QStringList &s, bool trimText=false,
+ void decodedText(TQStringList &s, bool trimText=false,
bool removeTrailingNewlines=false);
- void fromUnicodeString(const QString &s);
+ void fromUnicodeString(const TQString &s);
Content* textContent();
void attachments(List *dst, bool incAlternatives=false);
@@ -112,12 +112,12 @@ class KDE_EXPORT Content : public Base {
//saves the encoded content to the given textstream
// scrambleFromLines: replace "\nFrom " with "\n>From ", this is
// needed to avoid problem with mbox-files
- void toStream(QTextStream &ts, bool scrambleFromLines=false);
+ void toStream(TQTextStream &ts, bool scrambleFromLines=false);
// this charset is used for all headers and the body
// if the charset is not declared explictly
- QCString defaultCharset() { return QCString(d_efaultCS); }
- void setDefaultCharset(const QCString &cs);
+ TQCString defaultCharset() { return TQCString(d_efaultCS); }
+ void setDefaultCharset(const TQCString &cs);
// use the default charset even if a different charset is
// declared in the article
@@ -130,11 +130,11 @@ class KDE_EXPORT Content : public Base {
protected:
- QCString rawHeader(const char *name);
+ TQCString rawHeader(const char *name);
bool decodeText();
template <class T> T* getHeaderInstance(T *ptr, bool create);
- QCString h_ead,
+ TQCString h_ead,
b_ody;
List *c_ontents;
Headers::Base::List *h_eaders;