davjob.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __kio_davjob_h__
00022 #define __kio_davjob_h__
00023
00024 #include <kurl.h>
00025
00026 #include <qobject.h>
00027 #include <qptrlist.h>
00028 #include <qstring.h>
00029 #include <qstringlist.h>
00030 #include <qguardedptr.h>
00031 #include <qdom.h>
00032
00033 #include <sys/types.h>
00034 #include <sys/stat.h>
00035
00036 #include <kio/jobclasses.h>
00037 #include <kio/global.h>
00038
00039 class Observer;
00040 class QTimer;
00041
00042 namespace KIO {
00043
00044 class Slave;
00045 class SlaveInterface;
00046
00054 class DavJob : public TransferJob {
00055 Q_OBJECT
00056
00057 public:
00058 DavJob(const KURL& url, int method,
00059 const QString& request, bool showProgressInfo);
00060 QDomDocument& response() { return m_response; }
00061
00062 protected slots:
00063 virtual void slotFinished();
00064 virtual void slotData( const QByteArray &data);
00065
00066 protected:
00067 bool m_suspended;
00068 TransferJob *m_subJob;
00069 private:
00070 class DavJobPrivate* d;
00071 QString m_str_response;
00072 QDomDocument m_response;
00073 };
00074
00075 DavJob* davPropFind( const KURL& url, const QDomDocument& properties, QString depth, bool showProgressInfo=true );
00076 DavJob* davPropPatch( const KURL& url, const QDomDocument& properties, bool showProgressInfo=true );
00077 DavJob* davSearch( const KURL &url, const QString& nsURI, const QString& qName, const QString& query, bool showProgressInfo=true );
00078
00079 };
00080
00081 #endif
00082
This file is part of the documentation for kdelibs Version 3.1.0.