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

List:       kde-commits
Subject:    kdenonbeta/kdeutil/kde/io
From:       Tim Jansen <tim () tjansen ! de>
Date:       2003-11-15 22:59:44
[Download RAW message or body]

CVS commit by tjansen: 

adding char to Console<< ;  doc fixes


  M +4 -0      console.cpp   1.6
  M +7 -0      console.h   1.4
  M +7 -0      memarea.h   1.3
  M +1 -1      tests/memtest.cpp   1.3


--- kdenonbeta/kdeutil/kde/io/console.cpp  #1.5:1.6
@@ -153,4 +153,8 @@ Console &Console::operator<<(const char 
         return *this;
 }
+Console &Console::operator<<(char c) {
+        defaultOutputStream()->write(c);
+        return *this;
+}
 Console &Console::operator<<(int number) {
         defaultOutputStream()->write(QString::number(number).local8Bit());

--- kdenonbeta/kdeutil/kde/io/console.h  #1.3:1.4
@@ -277,4 +277,11 @@ public:
         Console &operator<<(const char *text);
         /**
+         * Prints the given 8-bit character to the default
+         * output channel.
+         * @param character the character to print
+         * @see setDefaultOutputChannel()
+         */
+        Console &operator<<(char character);
+        /**
          * Prints the given number as decimal string to the default
          * output channel.

--- kdenonbeta/kdeutil/kde/io/memarea.h  #1.2:1.3
@@ -57,4 +57,11 @@ namespace IO {
  * }
  * @endcode
+ *
+ * MemArea should be used instead of a QByteArray when you plan to access its
+ * content directly. If you just need to pass a byte array you can keep using
+ * QByteArray. All functions that take a MemArea as argument will also work
+ * with QByteArray as argument because of the MemArea(const QByteArray&)
+ * constructor.
+ *
  * @see MemPtr
  */


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

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