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>)));
QObject * child(const char *objName, const char *inheritsClass, bool recursiveSearch) const
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
iterator insert(const Key &key, const T &value)
void signalArticlesRemoved(Akregator::TreeNode *, const QList< Akregator::Article > &guids)
emitted when articles were removed from this subtree. 
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
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
QVector< T > toVector() const
Definition: articlejobs.h:60
Folder(const QString &title=QString())
Creates a new folder with a given title. 
Definition: folder.cpp:91
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
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 
QString number(int n, int base)
void append(const T &value)
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)...
bool hasAttribute(const QString &name) const
Definition: feedlist.h:41
void setAttribute(const QString &name, const QString &value)
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 *)
Definition: article.h:41
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:433
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< T > values() const
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
QString fromLatin1(const char *str, int size)
void doArticleNotification()
reimplement this in subclasses to do the actual notification called by articlesModified ...
Definition: folder.cpp:359
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:58
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
virtual bool visitTreeNode(TreeNode *)
Definition: treenodevisitor.h:40
uint toUInt(bool *ok, int base) const
bool subtreeContains(const Akregator::TreeNode *node) const 
Definition: folder.cpp:338
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
            Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference