KIO
deletejob.cpp
Go to the documentation of this file.
225 //kDebug(7007) << "Found cached info about" << m_currentURL << "isDir=" << cachedItem.isDir() << "isLink=" << cachedItem.isLink();
246 KIO::SimpleJob * job = KIO::stat( m_currentURL, StatJob::SourceSide, 0, KIO::HideProgressInfo );
298 if ( m_processedFiles % 300 == 1 || m_totalFilesDirs < 300) { // update progress info every 300 files
394 // But then there would be no feedback (things disappearing progressively) during huge deletions
An alternative URL (If different from the caption).
Definition: udsentry.h:190
void adjustPath(AdjustPathOption trailing)
QString directory(const DirectoryOptions &options=IgnoreTrailingSlash) const
static KDirWatch * self()
static bool canDeleteRecursive(const KUrl &url)
Returns whether the protocol can recursively delete directories by itself.
Definition: kprotocolmanager.cpp:1151
void addMetaData(const QString &key, const QString &value)
Add key/value pair to the meta data that is sent to the slave.
Definition: job.cpp:264
void setUiDelegate(KJobUiDelegate *delegate)
static void setJobPriority(SimpleJob *job, int priority)
Changes the priority of job; jobs of the same priority run in the order in which they were created...
Definition: scheduler.cpp:805
int timeout
A ListJob is allows you to get the get the content of a directory.
Definition: jobclasses.h:936
Definition: global.h:235
KStandardDirs * dirs()
StatJob * stat(const KUrl &url, JobFlags flags=DefaultFlags)
Find all details for one file or directory.
Definition: job.cpp:924
SimpleJob * file_delete(const KUrl &src, JobFlags flags=DefaultFlags)
Delete a single file.
Definition: job.cpp:2487
A KIO job that retrieves information about a file or directory.
Definition: jobclasses.h:440
static KFileItem cachedItemForUrl(const KUrl &url)
Return the KFileItem for the given URL, if we listed it recently and it's still in the cache - which ...
Definition: kdirlister.cpp:2788
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
void setUnrestricted(bool unrestricted)
Do not apply any KIOSK restrictions to this job.
Definition: job.cpp:2745
bool stopDirScan(const QString &path)
void addPath(const QString &txt)
void append(const T &value)
static void emitFilesRemoved(const QStringList &fileList)
Definition: kdirnotify.cpp:57
QString & insert(int position, QChar ch)
static bool supportsDeleting(const KUrl &url)
Returns whether the protocol can delete files/objects.
Definition: kprotocolmanager.cpp:1077
virtual void slotResult(KJob *job)
QString buildErrorString(int errorCode, const QString &errorText)
Returns a translated error message for errorCode using the additional error information provided by e...
Definition: global.cpp:164
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
const_iterator constEnd() const
iterator end()
bool isLink() const
Returns true if this item represents a link in the UNIX sense of a link.
Definition: kfileitem.cpp:1567
static void emitDeleting(KIO::Job *, const KUrl &url)
Definition: job.cpp:144
const_iterator constBegin() const
static ClipboardUpdater * create(Job *job, Mode mode)
Returns an instance of clipboard updater if QApplication::type() does not return a tty...
Definition: clipboardupdater.cpp:162
DeleteJob * del(const KUrl &src, JobFlags flags=DefaultFlags)
Delete a file or directory.
Definition: deletejob.cpp:492
TransferJob * http_delete(const KUrl &url, JobFlags flags=DefaultFlags)
HTTP DELETE.
Definition: job.cpp:1637
ListJob * listRecursive(const KUrl &url, JobFlags flags=DefaultFlags, bool includeHidden=true)
The same as the previous method, but recurses subdirectories.
Definition: job.cpp:2740
Filename - as displayed in directory listings etc.
Definition: udsentry.h:163
typedef ConstIterator
bool hasSubjobs()
QString fromLatin1(const char *str, int size)
Definition: jobclasses.h:446
virtual void registerJob(KJob *job)
Definition: deletejob.cpp:53
bool isLocalFile() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: job_p.h:39
const KShortcut & end()
bool restartDirScan(const QString &path)
iterator begin()
QByteArray encodeName(const QString &fileName)
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.