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

List:       kde-commits
Subject:    kdenonbeta/libqt-addon/libqt-addon
From:       Thiago Macieira <thiagom () mail ! com>
Date:       2003-12-12 20:17:45
[Download RAW message or body]

CVS commit by thiago: 

Updating to the new hierarchy; added some new capabilities


  M +24 -4     qsocketimpl.h   1.11


--- kdenonbeta/libqt-addon/libqt-addon/qsocketimpl.h  #1.10:1.11
@@ -50,5 +50,5 @@ class QSocketImplPrivate;
  * @version $Id$
  */
-class QSocketImpl: public QSocketBase
+class QSocketImpl: public QActiveSocketBase, public QPassiveSocketBase
 {
 public:
@@ -59,4 +59,7 @@ public:
    * available in the default class. These capabilities are described by these flags.
    * The default QSocketImpl class has none of these capabilities.
+   *
+   * For the negative capabilities (inabilities, the CanNot* forms), when a capability 
+   * is not present, the implementation will default to the original behaviour.
    */
   enum Capabilities
@@ -76,5 +79,16 @@ public:
       /** Can not listen.
        *  If this flag is present, this implementation cannot listen */
-      CanNotListen = 0x08
+      CanNotListen = 0x08,
+
+      /**
+       * Can not use multicast.
+       */
+      CanNotMulticast = 0x10,
+
+      /**
+       * Can not use datagrams.
+       * Note that this implies multicast capability not being available either.
+       */
+      CanNotUseDatagrams = 0x20 | CanNotMulticast
     };
 protected:
@@ -141,4 +155,10 @@ public:
 
   /**
+   * This call is not supported on sockets. Reimplemented from QIODevice.
+   */
+  virtual void flush()
+  { }
+
+  /**
    * Creates a socket but don't connect or bind anywhere.
    * This function is the equivalent of the system call socket(2).


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

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