akregator/src/librss
RSS::FileRetriever Class Reference
#include <loader.h>
Inheritance diagram for RSS::FileRetriever:

Detailed Description
Implements a file retriever, to be used with Loader::loadFrom().
- See also:
- DataRetriever, Loader::loadFrom()
Definition at line 89 of file loader.h.
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 QString &ua) |
static QString | userAgent () |
Protected Slots | |
void | slotTimeout () |
Constructor & Destructor Documentation
FileRetriever::FileRetriever | ( | ) |
FileRetriever::~FileRetriever | ( | ) | [virtual] |
Member Function Documentation
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:
-
url An 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.
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 KIO.
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()
The documentation for this class was generated from the following files: