Syndication Library
Syndication::OutputRetriever Class Reference
Implements a data retriever which executes a program and stores returned by the program on stdout. More...
#include <dataretriever.h>

Public Member Functions | |
| virtual void | abort () |
| virtual int | errorCode () const |
| OutputRetriever () | |
| virtual void | retrieveData (const KUrl &url) |
| virtual | ~OutputRetriever () |
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
| Syndication::OutputRetriever::OutputRetriever | ( | ) |
Default constructor.
Definition at line 167 of file dataretriever.cpp.
| Syndication::OutputRetriever::~OutputRetriever | ( | ) | [virtual] |
Destructor.
Definition at line 171 of file dataretriever.cpp.
Member Function Documentation
| virtual void Syndication::OutputRetriever::abort | ( | ) | [inline, virtual] |
aborts the retrieval process.
Implements Syndication::DataRetriever.
Definition at line 133 of file dataretriever.h.
| int Syndication::OutputRetriever::errorCode | ( | ) | const [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.
| void Syndication::OutputRetriever::retrieveData | ( | const KUrl & | url | ) | [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:
KDE 4.3 API Reference