From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkmime/kmime_codecs.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'libkmime/kmime_codecs.h') 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 +#include #if defined(QT_THREAD_SUPPORT) -# include +# include #endif -#include // QByteArray +#include // QByteArray #include // for kdFatal() #include @@ -57,9 +57,9 @@ class Decoder; class KDE_EXPORT Codec { protected: - static QAsciiDict* all; + static TQAsciiDict* 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: *
    * 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:
    * 
    * 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 
 */
-- 
cgit v1.2.1