Syndication Library
10 #ifndef SYNDICATION_DATARETRIEVER_H
11 #define SYNDICATION_DATARETRIEVER_H
13 #include "ksyndication_export.h"
15 #include <QtCore/QObject>
16 #include <QtCore/QString>
17 #include <QtCore/QProcess>
59 virtual void retrieveData(
const KUrl& url) = 0;
67 virtual int errorCode()
const = 0;
72 virtual void abort() = 0;
87 void dataRetrieved(
const QByteArray& data,
bool success);
123 virtual void retrieveData(
const KUrl& url);
131 virtual int errorCode()
const;
136 void slotFinished (
int exitCode, QProcess::ExitStatus exitStatus ) ;
142 struct OutputRetrieverPrivate;
143 OutputRetrieverPrivate*
const d;
173 virtual void retrieveData(
const KUrl& url);
181 virtual int errorCode()
const;
186 virtual void abort();
194 static void setUseCache(
bool enabled);
201 static void setUserAgent(
const QString& userAgent);
215 void permanentRedirection(
const KUrl& url);
223 void slotData(KIO::Job*job,
const QByteArray& data);
224 void slotResult(KJob* job);
225 void slotPermanentRedirection(KIO::Job* job,
const KUrl& fromUrl,
230 static bool m_useCache;
236 struct FileRetrieverPrivate;
237 FileRetrieverPrivate*
const d;
242 #endif // SYNDICATION_DATARETRIEVER_H
Implements a file retriever, to be used with Loader::loadFrom().
Implements a data retriever which executes a program and stores returned by the program on stdout...
virtual void abort()
aborts the retrieval process.
Abstract baseclass for all data retriever classes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:32 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.