25#ifndef AKREGATOR_TAGNODE_H
26#define AKREGATOR_TAGNODE_H
34template <
class T>
class TQValueList;
57 TagNode(
const Tag& tag,
TreeNode* observed);
61 virtual bool accept(TreeNodeVisitor* visitor);
63 virtual Tag tag()
const;
65 virtual TQString icon()
const;
70 virtual int unread()
const;
83 virtual TQValueList<Article> articles(
const TQString& tag=TQString());
87 virtual TQStringList
tags()
const;
92 virtual bool isGroup()
const {
return false;}
96 virtual TQDomElement toOPML( TQDomElement
parent, TQDomDocument document )
const;
103 virtual void setTitle(
const TQString&
title);
106 virtual void tagChanged();
118 virtual void slotAddToFetchQueue(FetchQueue* queue,
bool intervalFetchOnly=
false);
120 virtual void slotArticlesAdded(
TreeNode* node,
const TQValueList<Article>& list);
121 virtual void slotArticlesUpdated(
TreeNode* node,
const TQValueList<Article>& list);
122 virtual void slotArticlesRemoved(
TreeNode* node,
const TQValueList<Article>& list);
123 virtual void slotObservedDestroyed(
TreeNode* node);
128 virtual void calcUnread();
131 class TagNodePrivate;
A proxy class for RSS::Article with some additional methods to assist sorting.
Represents a folder (containing feeds and/or other folders).
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
virtual bool isGroup() const =0
Helps the rest of the app to decide if node should be handled as group or not.
virtual int totalCount() const =0
returns the number of total articles in the node (for groups: the accumulated count of the subtree)
virtual void slotMarkAllArticlesAsRead()=0
Marks all articles in this node as read.
TreeNode()
Standard constructor.
virtual void doArticleNotification()
reimplement this in subclasses to do the actual notification called by articlesModified
virtual TQStringList tags() const =0
returns a list of all tags occurring in this node (sub tree for folders)
virtual TreeNode * next()=0
returns the next node in the tree.
virtual int unread() const =0
The unread count, returns the number of new/unread articles in the node (for groups: the accumulated ...
virtual const TQString & title() const
Get title of node.
virtual Folder * parent() const
Returns the parent node.
virtual void slotDeleteExpiredArticles()=0
Deletes all expired articles in the node (depending on the expiry settings).