Syndication Library
#include <dataretriever.h>

Public Member Functions | |
OutputRetriever () | |
virtual | ~OutputRetriever () |
virtual void | abort () |
virtual int | errorCode () const |
virtual void | retrieveData (const KUrl &url) |
![]() | |
DataRetriever () | |
virtual | ~DataRetriever () |
virtual void | abort ()=0 |
virtual int | errorCode () const =0 |
virtual void | retrieveData (const KUrl &url)=0 |
Additional Inherited Members | |
![]() | |
void | dataRetrieved (const QByteArray &data, bool success) |
Detailed Description
Implements a data retriever which executes a program and stores returned by the program on stdout.
To be used with Loader::loadFrom().
- See also
- DataRetriever, Loader::loadFrom()
Definition at line 100 of file dataretriever.h.
Constructor & Destructor Documentation
◆ OutputRetriever()
Syndication::OutputRetriever::OutputRetriever | ( | ) |
Default constructor.
Definition at line 167 of file dataretriever.cpp.
◆ ~OutputRetriever()
|
virtual |
Destructor.
Definition at line 171 of file dataretriever.cpp.
Member Function Documentation
◆ abort()
|
inlinevirtual |
aborts the retrieval process.
Implements Syndication::DataRetriever.
Definition at line 133 of file dataretriever.h.
◆ errorCode()
|
virtual |
- Returns
- The error code for the last process of retrieving data. 0 is returned in case there was no error, otherwise an error code which depends on the particular program which was run is returned.
Implements Syndication::DataRetriever.
Definition at line 192 of file dataretriever.cpp.
◆ retrieveData()
|
virtual |
Executes the program referenced by the given URL and retrieves the data which the program prints to stdout.
- Parameters
-
url An URL which is supposed to reference an executable file.
- See also
- Loader::loadFrom()
Implements Syndication::DataRetriever.
Definition at line 176 of file dataretriever.cpp.
The documentation for this class was generated from the following files:
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.