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

List:       kde-commits
Subject:    kdeextragear-3/kdebluetooth/libqobex/qobex
From:       Simone Gotti <simone.gotti () email ! it>
Date:       2004-09-01 13:37:18
Message-ID: 20040901133718.20224DA7 () office ! kde ! org
[Download RAW message or body]

CVS commit by sgotti: 

Add the ability to put new headers in the del request, this was already done for the put one.


  M +11 -1     qobexclient.cpp   1.17
  M +6 -0      qobexclient.h   1.10


--- kdeextragear-3/kdebluetooth/libqobex/qobex/qobexclient.cpp  #1.16:1.17
@@ -157,4 +157,13 @@ bool QObexClient::del( const QString& pa
   myDebug(( "QObexClient::del( ... )" ));
 
+  QValueList<QObexHeader> headers;
+  
+  return del( path, headers );
+}
+
+bool QObexClient::del( const QString& path, 
+                          const QValueList<QObexHeader>& headers ) {
+  myDebug(( "QObexClient::del( ... )" ));
+
   // Check if there is a request running.
   if ( mCurrentRequest ) {
@@ -165,4 +174,5 @@ bool QObexClient::del( const QString& pa
   QObexObject* req = new QObexObject( QObexObject::Put, true );
   req->addHeader( QObexHeader( QObexHeader::Name, path ) );
+  req->appendHeaders( headers );
 
   // Make shure that the response code is stored.

--- kdeextragear-3/kdebluetooth/libqobex/qobex/qobexclient.h  #1.9:1.10
@@ -88,4 +88,10 @@ public:
   
   /**
+     Start an empty put request. According to the specs this shuold
+     delete the object given by @name.
+  */
+  bool del( const QString&, const QValueList<QObexHeader>& );
+  
+  /**
      Start a put request for name.
   */


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

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