kio Library API Documentation

davjob.h

00001 // -*- c++ -*-
00002 /* This file is part of the KDE libraries
00003     Copyright (C) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018     Boston, MA 02111-1307, USA.
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 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:28 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001