akregator
folder.cpp
Go to the documentation of this file.
85 Folder* fg = new Folder(e.hasAttribute(QString::fromLatin1("text")) ? e.attribute(QString::fromLatin1("text")) : e.attribute(QString::fromLatin1("title")));
115 el.setAttribute(QLatin1String("isOpen"), d->open ? QLatin1String("true") : QLatin1String("false"));
365 connect(child, SIGNAL(signalChanged(Akregator::TreeNode*)), this, SLOT(slotChildChanged(Akregator::TreeNode*)));
366 connect(child, SIGNAL(signalDestroyed(Akregator::TreeNode*)), this, SLOT(slotChildDestroyed(Akregator::TreeNode*)));
367 connect(child, SIGNAL(signalArticlesAdded(Akregator::TreeNode*,QList<Akregator::Article>)), this, SIGNAL(signalArticlesAdded(Akregator::TreeNode*,QList<Akregator::Article>)));
368 connect(child, SIGNAL(signalArticlesRemoved(Akregator::TreeNode*,QList<Akregator::Article>)), this, SIGNAL(signalArticlesRemoved(Akregator::TreeNode*,QList<Akregator::Article>)));
369 connect(child, SIGNAL(signalArticlesUpdated(Akregator::TreeNode*,QList<Akregator::Article>)), this, SIGNAL(signalArticlesUpdated(Akregator::TreeNode*,QList<Akregator::Article>)));
QDomElement toOPML(QDomElement parent, QDomDocument document) const
converts the feed group into OPML format for save and export and appends it to node parent in documen...
Definition: folder.cpp:110
virtual QVector< const Folder * > folders() const =0
void signalArticlesRemoved(Akregator::TreeNode *, const QList< Akregator::Article > &guids)
emitted when articles were removed from this subtree.
static Folder * fromOPML(const QDomElement &e)
creates a feed group parsed from a XML dom element.
Definition: folder.cpp:83
virtual QVector< const Feed * > feeds() const =0
Definition: feedlist.h:40
Definition: articlejobs.h:58
Folder(const QString &title=QString())
Creates a new folder with a given title.
Definition: folder.cpp:91
void signalDestroyed(Akregator::TreeNode *)
Emitted when this object is deleted.
void signalChildAdded(Akregator::TreeNode *)
emitted when a child was added
TreeNode * lastChild()
returns the last child of the group, 0 if none exist
Definition: folder.cpp:276
virtual QDomElement toOPML(QDomElement parent, QDomDocument document) const =0
exports node and child nodes to OPML (with akregator settings)
virtual void nodeModified()
call this if you modified the actual node (title, unread count).
Definition: treenode.cpp:208
void signalChildRemoved(Akregator::Folder *, Akregator::TreeNode *)
emitted when a child was removed
void signalArticlesAdded(Akregator::TreeNode *, const QList< Akregator::Article > &guids)
emitted when new articles were added to this node or any node in the subtree (for folders)...
void setOpen(bool open)
open/close the feed group (display it as expanded/collapsed in the tree view).
Definition: folder.cpp:291
QList< const TreeNode * > children() const
returns the (direct) children of this node.
Definition: folder.cpp:124
void signalAboutToRemoveChild(Akregator::TreeNode *)
virtual void setParent(Folder *parent)
Sets parent node; Don't call this directly, is done automatically by insertChild-methods in Folder...
Definition: treenode.cpp:173
void slotChildChanged(Akregator::TreeNode *node)
Called when a child was modified.
Definition: folder.cpp:325
void signalArticlesUpdated(Akregator::TreeNode *, const QList< Akregator::Article > &guids)
emitted when articles were updated
void signalChanged(Akregator::TreeNode *)
Notification mechanism: emitted, when the node was modified and notification is enabled.
virtual bool visitFolder(Folder *)
Definition: treenodevisitor.h:41
void slotAddToFetchQueue(Akregator::FetchQueue *queue, bool intervalFetchOnly=false)
add this feed to the fetch queue queue
Definition: feed.cpp:435
Definition: treenodevisitor.h:35
Represents a folder (containing feeds and/or other folders)
Definition: folder.h:44
void slotChildDestroyed(Akregator::TreeNode *node)
Called when a child was destroyed.
Definition: folder.cpp:331
void slotAddToFetchQueue(Akregator::FetchQueue *queue, bool intervalFetchesOnly=false)
enqueues children recursively for fetching
Definition: folder.cpp:353
QList< const TreeNode * > namedChildren(const QString &title) const
Definition: folder.cpp:431
virtual void articlesModified()
call this if the articles in the node were changed.
Definition: treenode.cpp:216
void doArticleNotification()
reimplement this in subclasses to do the actual notification called by articlesModified ...
Definition: folder.cpp:359
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
void insertChild(TreeNode *node, TreeNode *after)
inserts node as child after child node after.
Definition: folder.cpp:180
Definition: fetchqueue.h:37
TreeNode * firstChild()
returns the first child of the group, 0 if none exist
Definition: folder.cpp:266
Definition: article.h:39
virtual bool visitTreeNode(TreeNode *)
Definition: treenodevisitor.h:40
bool subtreeContains(const Akregator::TreeNode *node) const
Definition: folder.cpp:338
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.