RSS::OutputRetriever Class Reference
#include <loader.h>
Inheritance diagram for RSS::OutputRetriever:
Public Member Functions | |
OutputRetriever () | |
virtual | ~OutputRetriever () |
virtual void | retrieveData (const KURL &url) |
virtual int | errorCode () const |
virtual void | abort () |
Public Member Functions inherited from RSS::DataRetriever | |
DataRetriever () | |
virtual | ~DataRetriever () |
Additional Inherited Members | |
Signals inherited from RSS::DataRetriever | |
void | dataRetrieved (const TQByteArray &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()
Constructor & Destructor Documentation
◆ OutputRetriever()
OutputRetriever::OutputRetriever | ( | ) |
Default constructor.
Definition at line 190 of file loader.cpp.
◆ ~OutputRetriever()
|
virtual |
Destructor.
Definition at line 195 of file loader.cpp.
Member Function Documentation
◆ 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 RSS::DataRetriever.
Definition at line 218 of file loader.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 RSS::DataRetriever.
Definition at line 200 of file loader.cpp.
The documentation for this class was generated from the following files: