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

Detailed Description
Represents a folder (containing feeds and/or other folders).
Definition at line 44 of file folder.h.
Public Slots | |
virtual void | slotDeleteExpiredArticles () |
virtual void | slotMarkAllArticlesAsRead () |
virtual void | slotChildChanged (TreeNode *node) |
virtual void | slotChildDestroyed (TreeNode *node) |
virtual void | slotAddToFetchQueue (FetchQueue *queue, bool intervalFetchesOnly=false) |
virtual TreeNode * | next () |
Signals | |
void | signalChildAdded (TreeNode *) |
void | signalChildRemoved (Folder *, TreeNode *) |
Public Member Functions | |
Folder (const QString &title=QString::null) | |
virtual | ~Folder () |
virtual bool | accept (TreeNodeVisitor *visitor) |
virtual QValueList< Article > | articles (const QString &tag=QString::null) |
virtual QStringList | tags () const |
virtual int | unread () const |
virtual int | totalCount () const |
virtual bool | isGroup () const |
virtual QDomElement | toOPML (QDomElement parent, QDomDocument document) const |
virtual QValueList< TreeNode * > | children () const |
virtual void | insertChild (TreeNode *node, TreeNode *after) |
virtual void | prependChild (TreeNode *node) |
virtual void | appendChild (TreeNode *node) |
virtual void | removeChild (TreeNode *node) |
virtual TreeNode * | firstChild () |
virtual TreeNode * | lastChild () |
virtual bool | isOpen () const |
virtual void | setOpen (bool open) |
Static Public Member Functions | |
static Folder * | fromOPML (QDomElement e) |
Protected Member Functions | |
virtual void | insertChild (uint index, TreeNode *node) |
virtual void | doArticleNotification () |
Constructor & Destructor Documentation
|
Creates a new folder with a given title.
Definition at line 71 of file folder.cpp. |
Member Function Documentation
|
inserts
Definition at line 168 of file folder.cpp. |
|
returns recursively concatenated articles of children
Implements Akregator::TreeNode. Definition at line 108 of file folder.cpp. |
|
returns the (direct) children of this node.
Definition at line 133 of file folder.cpp. |
|
reimplement this in subclasses to do the actual notification called by articlesModified
Reimplemented from Akregator::TreeNode. Definition at line 305 of file folder.cpp. |
|
returns the first child of the group, 0 if none exist
Definition at line 220 of file folder.cpp. |
|
creates a feed group parsed from a XML dom element. Child nodes are not inserted or parsed.
Definition at line 63 of file folder.cpp. |
|
inserts
Definition at line 148 of file folder.cpp. |
|
inserts
if
Definition at line 138 of file folder.cpp. |
|
Helps the rest of the app to decide if node should be handled as group or not. Use only where necessary, use polymorphism where possible. Implements Akregator::TreeNode. |
|
returns whether the feed group is opened or not. Use only in FolderItem. Definition at line 230 of file folder.cpp. |
|
returns the last child of the group, 0 if none exist
Definition at line 225 of file folder.cpp. |
|
returns the next node in the tree. Calling next() unless it returns 0 iterates through the tree in pre-order Implements Akregator::TreeNode. Definition at line 327 of file folder.cpp. |
|
inserts
Definition at line 185 of file folder.cpp. |
|
remove
Note that
Definition at line 202 of file folder.cpp. |
|
open/close the feed group (display it as expanded/collapsed in the tree view). Use only in FolderItem. Definition at line 235 of file folder.cpp. |
|
emitted when a child was added
|
|
emitted when a child was removed
|
|
enqueues children recursively for fetching
Implements Akregator::TreeNode. Definition at line 298 of file folder.cpp. |
|
Called when a child was modified.
Definition at line 276 of file folder.cpp. |
|
Called when a child was destroyed.
Definition at line 282 of file folder.cpp. |
|
Delete expired articles recursively.
Implements Akregator::TreeNode. Definition at line 289 of file folder.cpp. |
|
Mark articles of children recursively as read.
Implements Akregator::TreeNode. Definition at line 267 of file folder.cpp. |
|
returns a list of all tags occurring in the subtree of this folder
Implements Akregator::TreeNode. Definition at line 93 of file folder.cpp. |
|
converts the feed group into OPML format for save and export and appends it to node Children are processed and appended recursively.
Implements Akregator::TreeNode. Reimplemented in Akregator::TagFolder. Definition at line 118 of file folder.cpp. |
|
returns the number of articles in all children
Implements Akregator::TreeNode. Definition at line 245 of file folder.cpp. |
|
returns the number of unread articles in all children
Implements Akregator::TreeNode. Definition at line 240 of file folder.cpp. |
The documentation for this class was generated from the following files: