KNewStuff
KNS::Feed Class Reference
#include <feed.h>
List of all members.
Detailed Description
KNewStuff feed.
A feed represents a collection of entries for download. One or more feeds are offered by a provider, each of which has a different characteristics. Usually, GHNS providers offer three feeds, for the most popular, highest rated and latest entries. Simple providers might offer no special feeds at all, only one default feed will be available in this case. Entries might appear in different feeds at the same time.
- Author:
- Josef Spillner (spillner@kde.org)
Definition at line 47 of file feed.h.
Constructor & Destructor Documentation
Constructor.
Definition at line 34 of file feed.cpp.
Destructor.
Definition at line 39 of file feed.cpp.
Member Function Documentation
void Feed::addEntry |
( |
Entry * |
entry |
) |
|
Adds an association to an entry.
Ownership of the entry will remain with the caller.
- Parameters:
-
| entry | Entry to link to this feed |
Definition at line 74 of file feed.cpp.
Retrieve the description of the feed.
- Returns:
- feed description
Definition at line 59 of file feed.cpp.
Retrieves the list of associated entries.
If the feed loading hasn't completed yet, this method may return the empty list.
- Returns:
- List of entries associated with this feed
Definition at line 86 of file feed.cpp.
KUrl Feed::feedUrl |
( |
|
) |
const |
Retrieve the URL of the feed.
- Returns:
- URL of this feed
Definition at line 69 of file feed.cpp.
Retrieve the name of the feed.
- Returns:
- feed name (potentially translated)
Definition at line 49 of file feed.cpp.
void Feed::removeEntry |
( |
Entry * |
entry |
) |
|
Removes an association to an entry.
- Parameters:
-
| entry | Entry to remove from this feed |
Definition at line 80 of file feed.cpp.
Sets the feed description.
Definition at line 54 of file feed.cpp.
void Feed::setFeedUrl |
( |
const KUrl & |
feedurl |
) |
|
Sets the URL for this feed.
Definition at line 64 of file feed.cpp.
Sets the name for this feed.
Definition at line 44 of file feed.cpp.
The documentation for this class was generated from the following files: