akregator/src

Akregator::TagNode Class Reference

Inheritance diagram for Akregator::TagNode:

Akregator::TreeNode List of all members.

Detailed Description

Definition at line 45 of file tagnode.h.


Public Slots

virtual void slotDeleteExpiredArticles ()
virtual void slotMarkAllArticlesAsRead ()
virtual void slotAddToFetchQueue (FetchQueue *queue, bool intervalFetchOnly=false)
virtual void slotArticlesAdded (TreeNode *node, const QValueList< Article > &list)
virtual void slotArticlesUpdated (TreeNode *node, const QValueList< Article > &list)
virtual void slotArticlesRemoved (TreeNode *node, const QValueList< Article > &list)
virtual void slotObservedDestroyed (TreeNode *node)

Public Member Functions

 TagNode (const Tag &tag, TreeNode *observed)
virtual ~TagNode ()
virtual bool accept (TreeNodeVisitor *visitor)
virtual Tag tag () const
virtual QString icon () const
virtual int unread () const
virtual int totalCount () const
virtual QValueList< Articlearticles (const QString &tag=QString::null)
virtual QStringList tags () const
virtual bool isGroup () const
virtual QDomElement toOPML (QDomElement parent, QDomDocument document) const
virtual TreeNodenext ()
virtual void setTitle (const QString &title)
virtual void tagChanged ()

Protected Member Functions

virtual void doArticleNotification ()
virtual void calcUnread ()

Constructor & Destructor Documentation

Akregator::TagNode::TagNode ( const Tag &  tag,
TreeNode observed 
)

creates a tag node, showing articles with a specific tag, from a given node.

Parameters:
tagId the identifier of the tag, as stored in the archive
observed the tag node will list the tagged articles of observed (usually "All Feeds" root node)

Definition at line 54 of file tagnode.cpp.


Member Function Documentation

int Akregator::TagNode::unread (  )  const [virtual]

The unread count, returns the number of new/unread articles in the node (for groups: the accumulated count of the subtree).

Returns:
number of new/unread articles

Implements Akregator::TreeNode.

Definition at line 111 of file tagnode.cpp.

int Akregator::TagNode::totalCount (  )  const [virtual]

returns the number of total articles in the node (for groups: the accumulated count of the subtree)

Returns:
number of articles

Implements Akregator::TreeNode.

Definition at line 117 of file tagnode.cpp.

QValueList< Article > Akregator::TagNode::articles ( const QString &  tag = QString::null  )  [virtual]

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 tag is not null, only articles tagged with tag are returned

Returns:
sequence of articles

Implements Akregator::TreeNode.

Definition at line 123 of file tagnode.cpp.

QStringList Akregator::TagNode::tags (  )  const [virtual]

returns a list of all tags occurring in this node (sub tree for folders)

Implements Akregator::TreeNode.

Definition at line 128 of file tagnode.cpp.

virtual bool Akregator::TagNode::isGroup (  )  const [inline, virtual]

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.

Returns:
whether the node is a feed group or not

Implements Akregator::TreeNode.

Definition at line 91 of file tagnode.h.

QDomElement Akregator::TagNode::toOPML ( QDomElement  parent,
QDomDocument  document 
) const [virtual]

reimplemented to return an invalid element

Implements Akregator::TreeNode.

Definition at line 134 of file tagnode.cpp.

TreeNode * Akregator::TagNode::next (  )  [virtual]

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 139 of file tagnode.cpp.

void Akregator::TagNode::setTitle ( const QString &  title  )  [virtual]

Sets the title of the node.

title should not contain entities.

Parameters:
title the title string

Reimplemented from Akregator::TreeNode.

Definition at line 269 of file tagnode.cpp.

void Akregator::TagNode::tagChanged (  )  [virtual]

called by TagNodeList when the tag of this node was changed

Definition at line 283 of file tagnode.cpp.

void Akregator::TagNode::slotDeleteExpiredArticles (  )  [virtual, slot]

does nothing for TagNode

Implements Akregator::TreeNode.

Definition at line 155 of file tagnode.cpp.

void Akregator::TagNode::slotMarkAllArticlesAsRead (  )  [virtual, slot]

marks all articles as read

Implements Akregator::TreeNode.

Definition at line 160 of file tagnode.cpp.

void Akregator::TagNode::slotAddToFetchQueue ( FetchQueue queue,
bool  intervalFetchOnly = false 
) [virtual, slot]

does nothing for TagNode

Implements Akregator::TreeNode.

Definition at line 169 of file tagnode.cpp.

void Akregator::TagNode::doArticleNotification (  )  [protected, virtual]

reimplement this in subclasses to do the actual notification called by articlesModified

Reimplemented from Akregator::TreeNode.

Definition at line 174 of file tagnode.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys