/usr/include/kio/deletejob.h is in kdelibs5-dev 4:4.14.2-5+deb8u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | // -*- c++ -*-
/* This file is part of the KDE libraries
Copyright 2000 Stephan Kulow <coolo@kde.org>
Copyright 2000-2006 David Faure <faure@kde.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_DELETEJOB_H
#define KIO_DELETEJOB_H
#include <QtCore/QStringList>
#include <kurl.h>
#include "global.h"
#include "jobclasses.h"
class QTimer;
namespace KIO {
class DeleteJobPrivate;
/**
* A more complex Job to delete files and directories.
* Don't create the job directly, but use KIO::del() instead.
*
* @see KIO::del()
*/
class KIO_EXPORT DeleteJob : public Job {
Q_OBJECT
public:
virtual ~DeleteJob();
/**
* Returns the list of URLs.
* @return the list of URLs.
*/
KUrl::List urls() const;
Q_SIGNALS:
/**
* Emitted when the total number of files is known.
* @param job the job that emitted this signal
* @param files the total number of files
*/
void totalFiles( KJob *job, unsigned long files );
/**
* Emitted when the toal number of direcotries is known.
* @param job the job that emitted this signal
* @param dirs the total number of directories
*/
void totalDirs( KJob *job, unsigned long dirs );
/**
* Sends the number of processed files.
* @param job the job that emitted this signal
* @param files the number of processed files
*/
void processedFiles( KIO::Job *job, unsigned long files );
/**
* Sends the number of processed directories.
* @param job the job that emitted this signal
* @param dirs the number of processed dirs
*/
void processedDirs( KIO::Job *job, unsigned long dirs );
/**
* Sends the URL of the file that is currently being deleted.
* @param job the job that emitted this signal
* @param file the URL of the file or directory that is being
* deleted
*/
void deleting( KIO::Job *job, const KUrl& file );
protected Q_SLOTS:
virtual void slotResult( KJob *job );
protected:
DeleteJob(DeleteJobPrivate &dd);
private:
Q_PRIVATE_SLOT(d_func(), void slotStart())
Q_PRIVATE_SLOT(d_func(), void slotEntries( KIO::Job*, const KIO::UDSEntryList& list ))
Q_PRIVATE_SLOT(d_func(), void slotReport())
Q_DECLARE_PRIVATE(DeleteJob)
};
/**
* Delete a file or directory.
*
* @param src file to delete
* @param flags: We support HideProgressInfo here
* @return the job handling the operation
*/
KIO_EXPORT DeleteJob *del( const KUrl& src, JobFlags flags = DefaultFlags );
/**
* Deletes a list of files or directories.
*
* @param src the files to delete
* @param flags: We support HideProgressInfo here
* @return the job handling the operation
*/
KIO_EXPORT DeleteJob *del( const KUrl::List& src, JobFlags flags = DefaultFlags );
}
#endif
|