davjob.h
// -*- c++ -*-
/* This file is part of the KDE libraries
Copyright (C) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_davjob_h__
#define __kio_davjob_h__
#include <kurl.h>
#include <qobject.h>
#include <qptrlist.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qguardedptr.h>
#include <qdom.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <kio/jobclasses.h>
#include <kio/global.h>
class Observer;
class QTimer;
namespace KIO {
class Slave;
class SlaveInterface;
class KIO_EXPORT DavJob : public TransferJob {
Q_OBJECT
public:
DavJob(const KURL& url, int method,
const QString& request, bool showProgressInfo);
QDomDocument& response() { return m_response; }
protected slots:
virtual void slotFinished();
virtual void slotData( const QByteArray &data);
protected:
bool m_suspended;
TransferJob *m_subJob;
private:
class DavJobPrivate;
DavJobPrivate *d;
QString dummy; // kept around for BC reasons
QDomDocument m_response;
};
KIO_EXPORT DavJob* davPropFind( const KURL& url, const QDomDocument& properties, QString depth, bool showProgressInfo=true );
KIO_EXPORT DavJob* davPropPatch( const KURL& url, const QDomDocument& properties, bool showProgressInfo=true );
KIO_EXPORT DavJob* davSearch( const KURL &url, const QString& nsURI, const QString& qName, const QString& query, bool showProgressInfo=true );
}
#endif
KIO::davPropFind
KIO_EXPORT DavJob * davPropFind(const KURL &url, const QDomDocument &properties, QString depth, bool showProgressInfo=true)
Creates a new DavJob that issues a PROPFIND command.
Definition: davjob.cpp:117
KIO::DavJob
The transfer job pumps data into and/or out of a Slave.
Definition: davjob.h:57
Observer
Observer for KIO::Job progress information.
Definition: observer.h:55
KIO::davPropPatch
KIO_EXPORT DavJob * davPropPatch(const KURL &url, const QDomDocument &properties, bool showProgressInfo=true)
Creates a new DavJob that issues a PROPPATCH command.
Definition: davjob.cpp:125
KIO::TransferJob
The transfer job pumps data into and/or out of a Slave.
Definition: jobclasses.h:875
KIO::davSearch
KIO_EXPORT DavJob * davSearch(const KURL &url, const QString &nsURI, const QString &qName, const QString &query, bool showProgressInfo=true)
Creates a new DavJob that issues a SEARCH command.
Definition: davjob.cpp:130
KIO::DavJob::response
QDomDocument & response()
Returns the response as a QDomDocument.
Definition: davjob.h:71

KDE Home | KDE Accessibility Home | Description of Access Keys