KIO
deletejob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KIO_DELETEJOB_H
00023 #define KIO_DELETEJOB_H
00024
00025 #include <QtCore/QStringList>
00026
00027 #include <kurl.h>
00028 #include "global.h"
00029
00030 #include "jobclasses.h"
00031
00032 class QTimer;
00033
00034 namespace KIO {
00035
00036 class DeleteJobPrivate;
00043 class KIO_EXPORT DeleteJob : public Job {
00044 Q_OBJECT
00045
00046 public:
00047 virtual ~DeleteJob();
00048
00053 KUrl::List urls() const;
00054
00055 Q_SIGNALS:
00056
00062 void totalFiles( KJob *job, unsigned long files );
00068 void totalDirs( KJob *job, unsigned long dirs );
00069
00075 void processedFiles( KIO::Job *job, unsigned long files );
00081 void processedDirs( KIO::Job *job, unsigned long dirs );
00082
00089 void deleting( KIO::Job *job, const KUrl& file );
00090
00091 protected Q_SLOTS:
00092 virtual void slotResult( KJob *job );
00093
00094 protected:
00095 DeleteJob(DeleteJobPrivate &dd);
00096
00097 private:
00098 Q_PRIVATE_SLOT(d_func(), void slotStart())
00099 Q_PRIVATE_SLOT(d_func(), void slotEntries( KIO::Job*, const KIO::UDSEntryList& list ))
00100 Q_PRIVATE_SLOT(d_func(), void slotReport())
00101 Q_DECLARE_PRIVATE(DeleteJob)
00102 };
00103
00111 KIO_EXPORT DeleteJob *del( const KUrl& src, JobFlags flags = DefaultFlags );
00112
00120 KIO_EXPORT DeleteJob *del( const KUrl::List& src, JobFlags flags = DefaultFlags );
00121 }
00122
00123 #endif