KNS::Feed Class Reference
KNewStuff feed.
More...
#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)
For internal use only.
Definition at line 45 of file feed.h.
Constructor & Destructor Documentation
Constructor.
Definition at line 32 of file feed.cpp.
Destructor.
Definition at line 37 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 72 of file feed.cpp.
Retrieve the description of the feed.
- Returns:
- feed description
Definition at line 57 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 84 of file feed.cpp.
KUrl Feed::feedUrl |
( |
|
) |
const |
Retrieve the URL of the feed.
- Returns:
- URL of this feed
Definition at line 67 of file feed.cpp.
Retrieve the name of the feed.
- Returns:
- feed name (potentially translated)
Definition at line 47 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 78 of file feed.cpp.
Sets the feed description.
Definition at line 52 of file feed.cpp.
void Feed::setFeedUrl |
( |
const KUrl & |
feedurl |
) |
|
Sets the URL for this feed.
Definition at line 62 of file feed.cpp.
Sets the name for this feed.
Definition at line 42 of file feed.cpp.
The documentation for this class was generated from the following files: