summaryrefslogtreecommitdiffstats
path: root/libkmime/kmime_codecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/kmime_codecs.h')
-rw-r--r--libkmime/kmime_codecs.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/libkmime/kmime_codecs.h b/libkmime/kmime_codecs.h
index df2c6a560..3ff0c4a42 100644
--- a/libkmime/kmime_codecs.h
+++ b/libkmime/kmime_codecs.h
@@ -32,12 +32,12 @@
#ifndef __KMIME_CODECS__
#define __KMIME_CODECS__
-#include <qasciidict.h>
+#include <tqasciidict.h>
#if defined(QT_THREAD_SUPPORT)
-# include <qmutex.h>
+# include <tqmutex.h>
#endif
-#include <qcstring.h> // QByteArray
+#include <tqcstring.h> // QByteArray
#include <kdebug.h> // for kdFatal()
#include <kdepimmacros.h>
@@ -57,9 +57,9 @@ class Decoder;
class KDE_EXPORT Codec {
protected:
- static QAsciiDict<Codec>* all;
+ static TQAsciiDict<Codec>* all;
#if defined(QT_THREAD_SUPPORT)
- static QMutex* dictLock;
+ static TQMutex* dictLock;
#endif
Codec() {}
@@ -68,7 +68,7 @@ private:
public:
static Codec * codecForName( const char * name );
- static Codec * codecForName( const QCString & name );
+ static Codec * codecForName( const TQCString & name );
virtual int maxEncodedSizeFor( int insize, bool withCRLF=false ) const = 0;
virtual int maxDecodedSizeFor( int insize, bool withCRLF=false ) const = 0;
@@ -91,9 +91,9 @@ public:
* <pre>
* KMime::Codec * codec = KMime::Codec::codecForName( "base64" );
* kdFatal( !codec ) << "no base64 codec found!?" << endl;
- * QByteArray out( in.size()*1.4 ); // crude maximal size of b64 encoding
- * QByteArray::Iterator iit = in.begin();
- * QByteArray::Iterator oit = out.begin();
+ * TQByteArray out( in.size()*1.4 ); // crude maximal size of b64 encoding
+ * TQByteArray::Iterator iit = in.begin();
+ * TQByteArray::Iterator oit = out.begin();
* if ( !codec->encode( iit, in.end(), oit, out.end() ) ) {
* kdDebug() << "output buffer too small" << endl;
* return;
@@ -127,9 +127,9 @@ public:
* <pre>
* KMime::Codec * codec = KMime::Codec::codecForName( "base64" );
* kdFatal( !codec ) << "no base64 codec found!?" << endl;
- * QByteArray out( in.size() ); // good guess for any encoding...
- * QByteArray::Iterator iit = in.begin();
- * QByteArray::Iterator oit = out.begin();
+ * TQByteArray out( in.size() ); // good guess for any encoding...
+ * TQByteArray::Iterator iit = in.begin();
+ * TQByteArray::Iterator oit = out.begin();
* if ( !codec->decode( iit, in.end(), oit, out.end() ) ) {
* kdDebug() << "output buffer too small" << endl;
* return;
@@ -151,33 +151,33 @@ public:
/**
* Even more convenient, but also a bit slower and more memory
* intensive, since it allocates storage for the worst case and then
- * shrinks the result QByteArray to the actual size again.
+ * shrinks the result TQByteArray to the actual size again.
*
* For use with small @p src.
**/
- virtual QByteArray encode( const QByteArray & src, bool withCRLF=false ) const;
+ virtual TQByteArray encode( const TQByteArray & src, bool withCRLF=false ) const;
/**
* Even more convenient, but also a bit slower and more memory
* intensive, since it allocates storage for the worst case and then
- * shrinks the result QCString to the actual size again.
+ * shrinks the result TQCString to the actual size again.
*
* For use with small @p src.
*
* This method only works for codecs whose output is in the 8bit
* domain (ie. not in the binary domain). Codecs that do not fall
- * into this category will return a null QCString.
+ * into this category will return a null TQCString.
**/
- virtual QCString encodeToQCString( const QByteArray & src, bool withCRLF=false ) const;
+ virtual TQCString encodeToQCString( const TQByteArray & src, bool withCRLF=false ) const;
/**
* Even more convenient, but also a bit slower and more memory
* intensive, since it allocates storage for the worst case and then
- * shrinks the result QByteArray to the actual size again.
+ * shrinks the result TQByteArray to the actual size again.
*
* For use with small @p src.
**/
- virtual QByteArray decode( const QByteArray & src, bool withCRLF=false ) const;
+ virtual TQByteArray decode( const TQByteArray & src, bool withCRLF=false ) const;
/**
* @return the name of the encoding. Guaranteed to be lowercase.
@@ -189,7 +189,7 @@ public:
};
/**
- * Stateful decoder class, modelled after QTextDecoder.
+ * Stateful decoder class, modelled after TQTextDecoder.
*
* @section Overview
*
@@ -238,9 +238,9 @@ public:
* kdFatal( !codec ) << "No codec found for base64!" << endl;
* KMime::Decoder * dec = codec->makeDecoder();
* assert( dec ); // should not happen
- * QByteArray out( 256 ); // small buffer is enough ;-)
- * QByteArray::Iterator iit = in.begin();
- * QByteArray::Iterator oit = out.begin();
+ * TQByteArray out( 256 ); // small buffer is enough ;-)
+ * TQByteArray::Iterator iit = in.begin();
+ * TQByteArray::Iterator oit = out.begin();
* // decode the chunk
* while ( !dec->decode( iit, in.end(), oit, out.end() ) )
* if ( oit == out.end() ) { // output buffer full, process contents
@@ -293,7 +293,7 @@ protected:
const bool mWithCRLF;
};
-/** Stateful encoder class, modelled after QTextEncoder.
+/** Stateful encoder class, modelled after TQTextEncoder.
@short Stateful encoder class
@author Marc Mutz <mutz@kde.org>
*/