[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/kmime
From:       Tom Albers <tomalbers () kde ! nl>
Date:       2007-04-05 12:37:23
Message-ID: 1175776643.388134.11350.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 650778 by toma:

Debug area for kmime.


 M  +1 -1      kmime_codecs.cpp  
 M  +4 -4      kmime_codecs.h  
 M  +1 -1      kmime_content.cpp  
 M  +10 -10    kmime_header_parsing.cpp  
 M  +3 -3      kmime_util.cpp  


--- trunk/KDE/kdepimlibs/kmime/kmime_codecs.cpp #650777:650778
@@ -100,7 +100,7 @@
 #endif
 
   if ( !codec ) {
-    kDebug() << "Unknown codec \"" << name << "\" requested!" << endl;
+    kDebug(5320) << "Unknown codec \"" << name << "\" requested!" << endl;
   }
 
   return codec;
--- trunk/KDE/kdepimlibs/kmime/kmime_codecs.h #650777:650778
@@ -171,10 +171,10 @@
       QByteArray::Iterator iit = in.begin();
       QByteArray::Iterator oit = out.begin();
       if ( !codec->encode( iit, in.end(), oit, out.end() ) ) {
-        kDebug() << "output buffer too small" << endl;
+        kDebug(5320) << "output buffer too small" << endl;
         return;
       }
-      kDebug() << "Size of encoded data: " << oit - out.begin() << endl;
+      kDebug(5320) << "Size of encoded data: " << oit - out.begin() << endl;
       </pre>
 
       @param scursor is a pointer to the start of the input buffer.
@@ -209,10 +209,10 @@
       QByteArray::Iterator iit = in.begin();
       QByteArray::Iterator oit = out.begin();
       if ( !codec->decode( iit, in.end(), oit, out.end() ) ) {
-        kDebug() << "output buffer too small" << endl;
+        kDebug(5320) << "output buffer too small" << endl;
         return;
       }
-      kDebug() << "Size of decoded data: " << oit - out.begin() << endl;
+      kDebug(5320) << "Size of decoded data: " << oit - out.begin() << endl;
       </pre>
 
       @param scursor is a pointer to the start of the input buffer.
--- trunk/KDE/kdepimlibs/kmime/kmime_content.cpp #650777:650778
@@ -659,7 +659,7 @@
     for ( Headers::Base::List::iterator it = main->h_eaders.begin();
           it != main->h_eaders.end(); ) {
       if ( (*it)->isMimeHeader() ) {
-        kDebug(5003) << "Content::removeContent(Content *c, bool del) : mime-header moved: "
+        kDebug(5320) << "Content::removeContent(Content *c, bool del) : mime-header moved: "
                      << (*it)->as7BitString() << endl;
         // first remove the old header
         removeHeader( (*it)->type() );
--- trunk/KDE/kdepimlibs/kmime/kmime_header_parsing.cpp #650777:650778
@@ -185,7 +185,7 @@
   char ch = *scursor++;
 
   if ( ch != '?' ) {
-    kDebug() << "first" << endl;
+    kDebug(5320) << "first" << endl;
     KMIME_WARN_PREMATURE_END_OF( EncodedWord );
     return false;
   }
@@ -207,7 +207,7 @@
 
   // not found? can't be an encoded-word!
   if ( scursor == send || *scursor != '?' ) {
-    kDebug() << "second" << endl;
+    kDebug(5320) << "second" << endl;
     KMIME_WARN_PREMATURE_END_OF( EncodedWord );
     return false;
   }
@@ -238,7 +238,7 @@
 
   // not found? Can't be an encoded-word!
   if ( scursor == send || *scursor != '?' ) {
-    kDebug() << "third" << endl;
+    kDebug(5320) << "third" << endl;
     KMIME_WARN_PREMATURE_END_OF( EncodedWord );
     return false;
   }
@@ -246,7 +246,7 @@
   // extract the encoding information:
   QByteArray maybeEncoding( encodingStart, scursor - encodingStart );
 
-  kDebug() << "parseEncodedWord: found charset == \"" << maybeCharset
+  kDebug(5320) << "parseEncodedWord: found charset == \"" << maybeCharset
            << "\"; language == \"" << maybeLanguage
            << "\"; encoding == \"" << maybeEncoding << "\"" << endl;
 
@@ -269,14 +269,14 @@
   // not found? Can't be an encoded-word!
   // ### maybe evaluate it nonetheless if the rest is OK?
   if ( scursor == send || *scursor != '?' ) {
-    kDebug() << "fourth" << endl;
+    kDebug(5320) << "fourth" << endl;
     KMIME_WARN_PREMATURE_END_OF( EncodedWord );
     return false;
   }
   scursor++;
   // check for trailing '=':
   if ( scursor == send || *scursor != '=' ) {
-    kDebug() << "fifth" << endl;
+    kDebug(5320) << "fifth" << endl;
     KMIME_WARN_PREMATURE_END_OF( EncodedWord );
     return false;
   }
@@ -323,7 +323,7 @@
     return false;
   };
 
-  kDebug() << "mimeName(): \"" << textCodec->name() << "\"" << endl;
+  kDebug(5320) << "mimeName(): \"" << textCodec->name() << "\"" << endl;
 
   // allocate a temporary buffer to store the 8bit text:
   int encodedTextLength = encodedTextEnd - encodedTextStart;
@@ -344,7 +344,7 @@
 
   result = textCodec->toUnicode( buffer.begin(), bit - buffer.begin() );
 
-  kDebug() << "result now: \"" << result << "\"" << endl;
+  kDebug(5320) << "result now: \"" << result << "\"" << endl;
   // cleanup:
   delete dec;
   language = maybeLanguage;
@@ -1516,7 +1516,7 @@
 
   value += textcodec->toUnicode( buffer.begin(), bit - buffer.begin() );
 
-  kDebug() << "value now: \"" << value << "\"" << endl;
+  kDebug(5320) << "value now: \"" << value << "\"" << endl;
   // cleanup:
   delete dec;
 }
@@ -1648,7 +1648,7 @@
   for ( int i = 0 ; i < stdDayNamesLen ; ++i ) {
     if ( qstrnicmp( scursor, stdDayNames[i], 3 ) == 0 ) {
       scursor += 3;
-      kDebug() << "found " << stdDayNames[i] << endl;
+      // kDebug(5320) << "found " << stdDayNames[i] << endl;
       return true;
     }
   }
--- trunk/KDE/kdepimlibs/kmime/kmime_util.cpp #650777:650778
@@ -54,7 +54,7 @@
   }
 
   c_harsetCache.append( name.toUpper() );
-  //kDebug() << "KNMimeBase::cachedCharset() number of cs " << c_harsetCache.count() << endl;
+  //kDebug(5320) << "KNMimeBase::cachedCharset() number of cs " << c_harsetCache.count() << endl;
   return c_harsetCache.last();
 }
 
@@ -67,7 +67,7 @@
   }
 
   l_anguageCache.append( name.toUpper() );
-  //kDebug() << "KNMimeBase::cachedCharset() number of cs " << c_harsetCache.count() << endl;
+  //kDebug(5320) << "KNMimeBase::cachedCharset() number of cs " << c_harsetCache.count() << endl;
   return l_anguageCache.last();
 }
 
@@ -295,7 +295,7 @@
 
   for ( int i=0; i<10; i++ ) {
     pos = (int) (61.0*rand() / (RAND_MAX + 1.0));
-    //kDebug(5003) << pos << endl;
+    //kDebug(5320) << pos << endl;
     p[i] = chars[pos];
   }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic