From kde-commits Wed Sep 01 13:37:18 2004 From: Simone Gotti Date: Wed, 01 Sep 2004 13:37:18 +0000 To: kde-commits Subject: kdeextragear-3/kdebluetooth/libqobex/qobex Message-Id: <20040901133718.20224DA7 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=109404584602971 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 headers; + + return del( path, headers ); +} + +bool QObexClient::del( const QString& path, + const QValueList& 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& ); + + /** Start a put request for name. */