Syndication Library
dataretriever.cpp
62QString FileRetriever::m_userAgent = QString::fromLatin1("Syndication %1").arg(QString::fromLatin1(SYNDICATION_VERSION));
90 d->job->addMetaData(QLatin1String("cache"), m_useCache ? QLatin1String("refresh") : QLatin1String("reload"));
void dataRetrieved(const QByteArray &data, bool success)
Emit this signal to tell the Loader class that the retrieval process was finished.
virtual void retrieveData(const KUrl &url)
Downloads the file referenced by the given URL and passes it's contents on to the Loader.
Definition: dataretriever.cpp:74
void permanentRedirection(const KUrl &url)
Signals a permanent redirection.
static void setUserAgent(const QString &userAgent)
sets the user agent string sent to the remote server
Definition: dataretriever.cpp:64
static void setUseCache(bool enabled)
sets whether the retriever should use the KHTML cache or always refetch the file.
Definition: dataretriever.cpp:69
virtual int errorCode() const
Definition: dataretriever.cpp:192
virtual void retrieveData(const KUrl &url)
Executes the program referenced by the given URL and retrieves the data which the program prints to s...
Definition: dataretriever.cpp:176
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.