akregator/src/librss

RSS::OutputRetriever Class Reference

#include <loader.h>

Inheritance diagram for RSS::OutputRetriever:
RSS::DataRetriever

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()

Definition at line 162 of file loader.h.

Constructor & Destructor Documentation

◆ OutputRetriever()

OutputRetriever::OutputRetriever ( )

Default constructor.

Definition at line 190 of file loader.cpp.

◆ ~OutputRetriever()

OutputRetriever::~OutputRetriever ( )
virtual

Destructor.

Definition at line 195 of file loader.cpp.

Member Function Documentation

◆ errorCode()

int 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 RSS::DataRetriever.

Definition at line 218 of file loader.cpp.

◆ retrieveData()

void 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
urlAn 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: