akregator/src

#include <feedlist.h>

Inherits Akregator::NodeList.

Signals

void signalDestroyed (FeedList *)
- Signals inherited from Akregator::NodeList
void signalDestroyed (NodeList *)
void signalNodeAdded (TreeNode *)
void signalNodeRemoved (TreeNode *)

Public Member Functions

 FeedList (TQObject *parent=0, const char *name=0)
 ~FeedList ()
void append (FeedList *list, Folder *parent=0, TreeNode *after=0)
virtual bool readFromXML (const TQDomDocument &doc)
virtual TQDomDocument toXML () const
FeedfindByURL (const TQString &feedURL) const
Article findArticle (const TQString &feedURL, const TQString &guid) const
void parseChildNodes (TQDomNode &node, Folder *parent)
 FeedList (const FeedList &)
FeedListoperator= (const FeedList &)
- Public Member Functions inherited from Akregator::NodeList
 NodeList (TQObject *parent=0, const char *name=0)
virtual FolderrootNode () const
virtual bool readFromXML (const TQDomDocument &doc)=0
virtual TQDomDocument toXML () const =0
virtual bool isEmpty () const
TreeNodefindByID (int id) const
const TQString & title () const
void setTitle (const TQString &name)
const TQValueList< TreeNode * > & asFlatList () const
TQValueList< TreeNode * > * flatList () const
TQMap< int, TreeNode * > * idMap () const
int generateID ()
void setRootNode (Folder *folder)
virtual void addNode (TreeNode *node, bool preserveID)
virtual void removeNode (TreeNode *node)
 NodeList (const NodeList &)
NodeList & operator= (const NodeList &)

Public Attributes

FeedListPrivate * d
- Public Attributes inherited from Akregator::NodeList
NodeListPrivate * d

Protected Member Functions

virtual void addNode (TreeNode *node, bool preserveID)
virtual void removeNode (TreeNode *node)

Friends

class AddNodeVisitor
class RemoveNodeVisitor

Additional Inherited Members

- Public Slots inherited from Akregator::NodeList
void clear ()
virtual void slotNodeDestroyed (TreeNode *node)
virtual void slotNodeAdded (TreeNode *node)
virtual void slotNodeRemoved (Folder *parent, TreeNode *node)

Detailed Description

The model of a feed tree, represents an OPML document.

Contains an additional root node "All Feeds" which isn't stored. Note that a node instance must not be in more than one FeedList at a time! When deleting the feed list, all contained nodes are deleted!

Definition at line 44 of file feedlist.h.

Constructor & Destructor Documentation

Akregator::FeedList::~FeedList ( )

Destructor.

Contained nodes are deleted!

Definition at line 194 of file feedlist.cpp.

Member Function Documentation

void Akregator::FeedList::append ( FeedList list,
Folder parent = 0,
TreeNode after = 0 
)

appends another feed list as sub tree.

The root node of list is ignored. NOTE: nodes are moved from list to this feed list, not copied

Definition at line 219 of file feedlist.cpp.

Feed * Akregator::FeedList::findByURL ( const TQString &  feedURL) const

returns a feed object for a given feed URL.

If the feed list does not contain a feed with url, NULL is returned. If it contains the same feed multiple times, any of the Feed objects is returned.

Definition at line 204 of file feedlist.cpp.

bool Akregator::FeedList::readFromXML ( const TQDomDocument &  doc)
virtual

reads an OPML document and appends the items to this list

Parameters
docthe OPML document to parse
Returns
whether parsing was successful or not (TODO: make errors more detailed)

Definition at line 145 of file feedlist.cpp.

TQDomDocument Akregator::FeedList::toXML ( ) const
virtual

exports the feed list as OPML.

The root node ("All Feeds") is ignored!

Definition at line 238 of file feedlist.cpp.


The documentation for this class was generated from the following files: