KIO
metainfojob.cpp
Go to the documentation of this file.
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 emitResult()
void setUiDelegate(KJobUiDelegate *delegate)
MetaInfoJob * fileMetaInfo(const KFileItemList &items)
Retrieves meta information for the given items.
Definition: metainfojob.cpp:159
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
Get (a.k.a.
Definition: job.cpp:1369
KFileMetaInfo metaInfo(bool autoget=true, int what=KFileMetaInfo::ContentInfo|KFileMetaInfo::TechnicalInfo) const
Returns the metainfo of this item.
Definition: kfileitem.cpp:1449
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual bool addSubjob(KJob *job)
Add a job that has to be finished before a result is emitted.
Definition: job.cpp:95
Definition: kfileitem.h:48
void setProtocol(const QString &proto)
void append(const T &value)
KFileMetaInfo provides metadata extracted from a file or other resource.
Definition: kfilemetainfo.h:56
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
MetaInfoJob(const KFileItemList &items, KFileMetaInfo::WhatFlags w=KFileMetaInfo::Everything, int iocost=3, int cpucost=6, const QStringList &requiredfields=QStringList(), const QStringList &requestedfields=QStringList())
Creates a new MetaInfoJob.
Definition: metainfojob.cpp:45
T & first()
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
void removeItem(const KFileItem &item)
Removes an item from metainfo extraction.
Definition: metainfojob.cpp:77
void gotMetaInfo(const KFileItem &item)
Emitted when the meta info for item has been successfully retrieved.
Definition: job.h:29
const QList< KJob * > & subjobs() const
bool hasSubjobs()
The transfer job pumps data into and/or out of a Slave.
Definition: jobclasses.h:555
MetaInfoJob is a KIO Job to retrieve meta information from files.
Definition: metainfojob.h:35
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: job_p.h:39
void setMetaInfo(const KFileMetaInfo &info) const
Sets the metainfo of this item to info.
Definition: kfileitem.cpp:1441
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 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:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.