akregator/src
Akregator::FeedList Class Reference
#include <feedlist.h>
Inheritance diagram for Akregator::FeedList:

Detailed Description
The model of a feed tree, represents an OPML document.Contains an additional root node "All Feeds" which isn't stored. Note that a node instance must not be in more than one FeedList at a time! When deleting the feed list, all contained nodes are deleted!
Definition at line 44 of file feedlist.h.
Signals | |
void | signalDestroyed (FeedList *) |
Public Member Functions | |
FeedList (QObject *parent=0, const char *name=0) | |
~FeedList () | |
void | append (FeedList *list, Folder *parent=0, TreeNode *after=0) |
virtual bool | readFromXML (const QDomDocument &doc) |
virtual QDomDocument | toXML () const |
Feed * | findByURL (const QString &feedURL) const |
Article | findArticle (const QString &feedURL, const QString &guid) const |
void | parseChildNodes (QDomNode &node, Folder *parent) |
FeedList (const FeedList &) | |
FeedList & | operator= (const FeedList &) |
Public Attributes | |
FeedListPrivate * | d |
Protected Member Functions | |
virtual void | addNode (TreeNode *node, bool preserveID) |
virtual void | removeNode (TreeNode *node) |
Friends | |
class | AddNodeVisitor |
class | RemoveNodeVisitor |
Constructor & Destructor Documentation
Akregator::FeedList::~FeedList | ( | ) |
Member Function Documentation
appends another feed list as sub tree.
The root node of list
is ignored. NOTE: nodes are _moved_ from list
to this feed list, not copied
Definition at line 217 of file feedlist.cpp.
Feed * Akregator::FeedList::findByURL | ( | const QString & | feedURL | ) | const |
returns a feed object for a given feed URL.
If the feed list does not contain a feed with url
, NULL is returned. If it contains the same feed multiple times, any of the Feed objects is returned.
Definition at line 202 of file feedlist.cpp.
bool Akregator::FeedList::readFromXML | ( | const QDomDocument & | doc | ) | [virtual] |
reads an OPML document and appends the items to this list
- Parameters:
-
doc the OPML document to parse
- Returns:
- whether parsing was successful or not (TODO: make errors more detailed)
Implements Akregator::NodeList.
Definition at line 143 of file feedlist.cpp.
QDomDocument Akregator::FeedList::toXML | ( | ) | const [virtual] |
exports the feed list as OPML.
The root node ("All Feeds") is ignored!
Implements Akregator::NodeList.
Definition at line 236 of file feedlist.cpp.
The documentation for this class was generated from the following files: