KIO
faviconrequestjob.cpp
123 QObject::connect(job, &KIO::TransferJob::data, this, [this](KIO::Job *job, const QByteArray &data) {
140 while (ir.imageCount() > 1 && ir.currentImageRect() != QRect(0, 0, desired.width(), desired.height())) {
169 setErrorText(job->errorString()); // not errorText(), because "this" is a KJob, with no errorString building logic
173 qCDebug(FAVICONS_LOG) << "adding" << iconUrl << "to failed downloads due to error:" << errorString();
187 // Testcase (as of june 2008, at least): http://planet-soc.com/favicon.ico, 136K and strange format.
virtual bool addSubjob(KJob *job)
virtual bool removeSubjob(KJob *job)
void setIconUrl(const QUrl &iconUrl)
setIconUrl allows to set, for a specific URL, a different icon URL than the default one for the host ...
Definition faviconrequestjob.cpp:71
FavIconRequestJob(const QUrl &hostUrl, KIO::LoadType reload=KIO::NoReload, QObject *parent=nullptr)
FavIconRequestJob constructor.
Definition faviconrequestjob.cpp:62
QString iconFile() const
Returns the full local path to the icon from the cache.
Definition faviconrequestjob.cpp:76
The base class for all jobs.
void addMetaData(const QString &key, const QString &value)
Add key/value pair to the meta data that is sent to the worker.
Definition job.cpp:221
The transfer job pumps data into and/or out of a KIO worker.
void data(KIO::Job *job, const QByteArray &data)
Data from the worker has arrived.
void setErrorText(const QString &errorText)
virtual QString errorString() const
void emitResult()
int error() const
void setError(int errorCode)
bool kill(KJob::KillVerbosity verbosity=KJob::Quietly)
QString i18n(const char *text, const TYPE &arg...)
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
Get (means: read).
Definition transferjob.cpp:385
const QList< QKeySequence > & reload()
char * data()
void resize(qsizetype newSize, char c)
qsizetype size() const const
QDate currentDate()
qint64 daysTo(QDate d) const const
bool isNull() const const
bool save(QIODevice *device, const char *format, int quality) const const
ReadOnly
iterator insert(const Key &key, const T &value)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QueuedConnection
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.