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

Detailed Description
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search folders later).TODO: detailed description goes here
Definition at line 51 of file treenode.h.
Public Slots | |
virtual void | slotDeleteExpiredArticles ()=0 |
virtual void | slotMarkAllArticlesAsRead ()=0 |
virtual void | slotAddToFetchQueue (FetchQueue *queue, bool intervalFetchesOnly=false)=0 |
Signals | |
void | signalDestroyed (TreeNode *) |
void | signalChanged (TreeNode *) |
void | signalArticlesAdded (TreeNode *node, const QValueList< Article > &guids) |
void | signalArticlesUpdated (TreeNode *, const QValueList< Article > &guids) |
void | signalArticlesRemoved (TreeNode *, const QValueList< Article > &guids) |
Public Member Functions | |
TreeNode () | |
virtual | ~TreeNode () |
virtual bool | accept (TreeNodeVisitor *visitor)=0 |
virtual int | unread () const =0 |
virtual int | totalCount () const =0 |
virtual const QString & | title () const |
virtual void | setTitle (const QString &title) |
virtual TreeNode * | nextSibling () const |
virtual TreeNode * | prevSibling () const |
virtual Folder * | parent () const |
virtual void | setParent (Folder *parent) |
virtual QValueList< Article > | articles (const QString &tag=QString::null)=0 |
virtual QStringList | tags () const =0 |
virtual bool | isGroup () const =0 |
virtual QDomElement | toOPML (QDomElement parent, QDomDocument document) const =0 |
virtual void | setNotificationMode (bool doNotify, bool notifyOccurredChanges=true) |
virtual TreeNode * | next ()=0 |
virtual uint | id () const |
virtual void | setId (uint id) |
Protected Member Functions | |
virtual void | nodeModified () |
virtual void | articlesModified () |
virtual void | doArticleNotification () |
void | emitSignalDestroyed () |
Constructor & Destructor Documentation
|
Standard constructor.
Definition at line 48 of file treenode.cpp. |
|
Standard destructor.
Definition at line 70 of file treenode.cpp. |
Member Function Documentation
|
Returns a sequence of the articles this node contains.
For feed groups, this returns a concatenated list of all articles in the sub tree. If
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
call this if the articles in the node were changed.
Sends signalArticlesAdded/Updated/Removed signals Will do notification immediately or cache it, depending on Definition at line 163 of file treenode.cpp. |
|
reimplement this in subclasses to do the actual notification called by articlesModified
Reimplemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. Definition at line 171 of file treenode.cpp. |
|
returns the ID of this node.
IDs are managed by FeedList objects and must be unique within the list. Some IDs have a special meaning: Definition at line 145 of file treenode.cpp. |
|
Helps the rest of the app to decide if node should be handled as group or not. Only use where necessary, use polymorphism where possible.
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
returns the next node in the tree. Calling next() unless it returns 0 iterates through the tree in pre-order Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
Get the next sibling.
Definition at line 92 of file treenode.cpp. |
|
call this if you modified the actual node (title, unread count).
Call this only when the _actual_ _node_ has changed, i.e. title, unread count. Don't use for article changes! Will do notification immediately or cache it, depending on Definition at line 155 of file treenode.cpp. |
|
Returns the parent node.
Definition at line 115 of file treenode.cpp. |
|
Get the previous sibling.
Definition at line 104 of file treenode.cpp. |
|
sets the ID
Definition at line 150 of file treenode.cpp. |
|
Definition at line 125 of file treenode.cpp. |
|
Sets parent node; Don't call this directly, is done automatically by insertChild-methods in Folder.
Definition at line 120 of file treenode.cpp. |
|
Sets the title of the node.
Reimplemented in Akregator::TagNode. Definition at line 82 of file treenode.cpp. |
|
emitted when new articles were added to this node or any node in the subtree (for folders). Note that this has nothing to do with fetching, the article might have been moved from somewhere else in the tree into this subtree, e.g. by moving the feed the article is in. For listening to newly fetched articles, you have to register yourself at ArticleInterceptorManager
|
|
emitted when articles were removed from this subtree. Note that this has nothing to do with actual article deletion! The article might have moved somewhere else in the tree, e.g. if the user moved the feed |
|
emitted when articles were updated
|
|
Notification mechanism: emitted, when the node was modified and notification is enabled. A node change is renamed title, icon, unread count. Added, updated or removed articles are not notified via this signal |
|
Emitted when this object is deleted.
|
|
adds node to a fetch queue
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
Deletes all expired articles in the node (depending on the expiry settings). Works recursively for feed groups. Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
Marks all articles in this node as read. Works recursively for feed groups. Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
returns a list of all tags occurring in this node (sub tree for folders)
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
Get title of node.
Definition at line 77 of file treenode.cpp. |
|
exports node and child nodes to OPML (with akregator settings)
Implemented in Akregator::Feed, Akregator::Folder, Akregator::TagFolder, and Akregator::TagNode. |
|
returns the number of total articles in the node (for groups: the accumulated count of the subtree)
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
|
The unread count, returns the number of new/unread articles in the node (for groups: the accumulated count of the subtree).
Implemented in Akregator::Feed, Akregator::Folder, and Akregator::TagNode. |
The documentation for this class was generated from the following files: