akregator/src/librss

#include <loader.h>

Inheritance diagram for RSS::FileRetriever:
RSS::DataRetriever

List of all members.

Signals

void permanentRedirection (const KURL &url)

Public Member Functions

 FileRetriever ()
virtual ~FileRetriever ()
virtual void retrieveData (const KURL &url)
virtual int errorCode () const
virtual void abort ()

Static Public Member Functions

static void setUseCache (bool enabled)
static void setUserAgent (const TQString &ua)
static TQString userAgent ()

Protected Slots

void slotTimeout ()

Detailed Description

Implements a file retriever, to be used with Loader::loadFrom().

See also:
DataRetriever, Loader::loadFrom()

Definition at line 90 of file loader.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 62 of file loader.cpp.

Destructor.

Definition at line 67 of file loader.cpp.


Member Function Documentation

int FileRetriever::errorCode ( ) const [virtual]
Returns:
The error code for the last process of retrieving data. The returned numbers correspond directly to the error codes as defined by TDEIO.

Implements RSS::DataRetriever.

Definition at line 135 of file loader.cpp.

void RSS::FileRetriever::permanentRedirection ( const KURL &  url) [signal]

Signals a permanent redirection.

The redirection itself is handled internally, so you don't need to call Loader::loadFrom() with the new URL. This signal is useful in case you want to notify the user, or adjust a database entry.

See also:
Loader::loadFrom()
void FileRetriever::retrieveData ( const KURL &  url) [virtual]

Downloads the file referenced by the given URL and passes it's contents on to the Loader.

Parameters:
urlAn URL referencing a file which is assumed to reference valid XML.
See also:
Loader::loadFrom()

Implements RSS::DataRetriever.

Definition at line 93 of file loader.cpp.


The documentation for this class was generated from the following files: