• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • Akregator
  • Folder
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Akregator::Folder Class Reference

#include <folder.h>

Inheritance diagram for Akregator::Folder:
Inheritance graph
[legend]

Public Slots

void slotAddToFetchQueue (Akregator::FetchQueue *queue, bool intervalFetchesOnly=false)
 
void slotChildChanged (Akregator::TreeNode *node)
 
void slotChildDestroyed (Akregator::TreeNode *node)
 
- Public Slots inherited from Akregator::TreeNode
virtual void slotAddToFetchQueue (Akregator::FetchQueue *queue, bool intervalFetchesOnly=false)=0
 

Signals

void signalAboutToRemoveChild (Akregator::TreeNode *)
 
void signalChildAdded (Akregator::TreeNode *)
 
void signalChildRemoved (Akregator::Folder *, Akregator::TreeNode *)
 
- Signals inherited from Akregator::TreeNode
void signalArticlesAdded (Akregator::TreeNode *, const QList< Akregator::Article > &guids)
 
void signalArticlesRemoved (Akregator::TreeNode *, const QList< Akregator::Article > &guids)
 
void signalArticlesUpdated (Akregator::TreeNode *, const QList< Akregator::Article > &guids)
 
void signalChanged (Akregator::TreeNode *)
 
void signalDestroyed (Akregator::TreeNode *)
 

Public Member Functions

 Folder (const QString &title=QString())
 
 ~Folder ()
 
bool accept (TreeNodeVisitor *visitor)
 
void appendChild (TreeNode *node)
 
TreeNode * childAt (int pos)
 
const TreeNode * childAt (int pos) const
 
QList< const TreeNode * > children () const
 
QList< TreeNode * > children ()
 
KJob * createMarkAsReadJob ()
 
QVector< const Feed * > feeds () const
 
QVector< Feed * > feeds ()
 
TreeNode * firstChild ()
 
const TreeNode * firstChild () const
 
QVector< const Folder * > folders () const
 
QVector< Folder * > folders ()
 
QIcon icon () const
 
int indexOf (const TreeNode *node) const
 
void insertChild (TreeNode *node, TreeNode *after)
 
bool isAggregation () const
 
bool isGroup () const
 
bool isOpen () const
 
TreeNode * lastChild ()
 
const TreeNode * lastChild () const
 
QList< const TreeNode * > namedChildren (const QString &title) const
 
QList< TreeNode * > namedChildren (const QString &title)
 
TreeNode * next ()
 
const TreeNode * next () const
 
void prependChild (TreeNode *node)
 
void removeChild (TreeNode *node)
 
void setOpen (bool open)
 
bool subtreeContains (const Akregator::TreeNode *node) const
 
QDomElement toOPML (QDomElement parent, QDomDocument document) const
 
int totalCount () const
 
int unread () const
 
- Public Member Functions inherited from Akregator::TreeNode
 TreeNode ()
 
virtual ~TreeNode ()
 
ArticleListJob * createListJob ()
 
virtual uint id () const
 
QPoint listViewScrollBarPositions () const
 
virtual const TreeNode * nextSibling () const
 
virtual TreeNode * nextSibling ()
 
virtual const Folder * parent () const
 
virtual Folder * parent ()
 
virtual const TreeNode * prevSibling () const
 
virtual TreeNode * prevSibling ()
 
virtual void setId (uint id)
 
void setListViewScrollBarPositions (const QPoint &pos)
 
virtual void setNotificationMode (bool doNotify)
 
virtual void setParent (Folder *parent)
 
void setTitle (const QString &title)
 
QString title () const
 

Static Public Member Functions

static Folder * fromOPML (const QDomElement &e)
 

Protected Member Functions

void doArticleNotification ()
 
void insertChild (int index, TreeNode *node)
 
- Protected Member Functions inherited from Akregator::TreeNode
virtual void articlesModified ()
 
void emitSignalDestroyed ()
 
virtual void nodeModified ()
 

Detailed Description

Represents a folder (containing feeds and/or other folders)

Definition at line 44 of file folder.h.

Constructor & Destructor Documentation

Folder::Folder ( const QString &  title = QString())
explicit

Creates a new folder with a given title.

Parameters
titleThe title of the feed group

Definition at line 91 of file folder.cpp.

Folder::~Folder ( )

Definition at line 96 of file folder.cpp.

Member Function Documentation

bool Folder::accept ( TreeNodeVisitor *  visitor)
virtual

Implements Akregator::TreeNode.

Definition at line 75 of file folder.cpp.

void Folder::appendChild ( TreeNode *  node)

inserts node as last child

Parameters
nodethe tree node to insert

Definition at line 215 of file folder.cpp.

TreeNode * Folder::childAt ( int  pos)
virtual

Reimplemented from Akregator::TreeNode.

Definition at line 379 of file folder.cpp.

const TreeNode * Folder::childAt ( int  pos) const
virtual

Reimplemented from Akregator::TreeNode.

Definition at line 386 of file folder.cpp.

QList< const TreeNode * > Folder::children ( ) const
virtual

returns the (direct) children of this node.

Returns
a list of pointers to the child nodes

Reimplemented from Akregator::TreeNode.

Definition at line 124 of file folder.cpp.

QList< TreeNode * > Folder::children ( )
virtual

Reimplemented from Akregator::TreeNode.

Definition at line 132 of file folder.cpp.

KJob * Folder::createMarkAsReadJob ( )
virtual

Implements Akregator::TreeNode.

Definition at line 317 of file folder.cpp.

void Folder::doArticleNotification ( )
protectedvirtual

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

Reimplemented from Akregator::TreeNode.

Definition at line 359 of file folder.cpp.

QVector< const Akregator::Feed * > Folder::feeds ( ) const
virtual

Implements Akregator::TreeNode.

Definition at line 137 of file folder.cpp.

QVector< Akregator::Feed * > Folder::feeds ( )
virtual

Implements Akregator::TreeNode.

Definition at line 146 of file folder.cpp.

TreeNode * Folder::firstChild ( )

returns the first child of the group, 0 if none exist

Definition at line 266 of file folder.cpp.

const TreeNode * Folder::firstChild ( ) const

Definition at line 271 of file folder.cpp.

QVector< const Folder * > Folder::folders ( ) const
virtual

Implements Akregator::TreeNode.

Definition at line 155 of file folder.cpp.

QVector< Folder * > Folder::folders ( )
virtual

Implements Akregator::TreeNode.

Definition at line 165 of file folder.cpp.

Folder * Folder::fromOPML ( const QDomElement &  e)
static

creates a feed group parsed from a XML dom element.

Child nodes are not inserted or parsed.

Parameters
ethe element representing the feed group
Returns
a freshly created feed group

Definition at line 83 of file folder.cpp.

QIcon Folder::icon ( ) const
virtual

Implements Akregator::TreeNode.

Definition at line 190 of file folder.cpp.

int Folder::indexOf ( const TreeNode *  node) const

Definition at line 175 of file folder.cpp.

void Folder::insertChild ( TreeNode *  node,
TreeNode *  after 
)

inserts node as child after child node after.

if after is not a child of this group, node will be inserted as first child

Parameters
nodethe tree node to insert
afterthe node after which node will be inserted

Definition at line 180 of file folder.cpp.

void Folder::insertChild ( int  index,
TreeNode *  node 
)
protected

inserts node as child on position index

Parameters
indexthe position where to insert
nodethe tree node to insert

Definition at line 195 of file folder.cpp.

bool Akregator::Folder::isAggregation ( ) const
inlinevirtual

returns if the node represents an aggregation, i.e.

containing items from more than once source feed. Folders and virtual folders are aggregations, feeds are not.

Implements Akregator::TreeNode.

Definition at line 75 of file folder.h.

bool Akregator::Folder::isGroup ( ) const
inlinevirtual

Helps the rest of the app to decide if node should be handled as group or not.

Implements Akregator::TreeNode.

Definition at line 72 of file folder.h.

bool Folder::isOpen ( ) const

returns whether the feed group is opened or not.

Use only in FolderItem.

Definition at line 286 of file folder.cpp.

TreeNode * Folder::lastChild ( )

returns the last child of the group, 0 if none exist

Definition at line 276 of file folder.cpp.

const TreeNode * Folder::lastChild ( ) const

Definition at line 281 of file folder.cpp.

QList< const TreeNode * > Folder::namedChildren ( const QString &  title) const

Definition at line 431 of file folder.cpp.

QList< TreeNode * > Folder::namedChildren ( const QString &  title)

Definition at line 446 of file folder.cpp.

TreeNode * Folder::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 393 of file folder.cpp.

const TreeNode * Folder::next ( ) const
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 412 of file folder.cpp.

void Folder::prependChild ( TreeNode *  node)

inserts node as first child

Parameters
nodethe tree node to insert

Definition at line 232 of file folder.cpp.

void Folder::removeChild ( TreeNode *  node)

remove node from children.

Note that node will not be deleted

Parameters
nodethe child node to remove

Definition at line 249 of file folder.cpp.

void Folder::setOpen ( bool  open)

open/close the feed group (display it as expanded/collapsed in the tree view).

Use only in FolderItem.

Definition at line 291 of file folder.cpp.

void Akregator::Folder::signalAboutToRemoveChild ( Akregator::TreeNode *  )
signal
void Akregator::Folder::signalChildAdded ( Akregator::TreeNode *  )
signal

emitted when a child was added

void Akregator::Folder::signalChildRemoved ( Akregator::Folder *  ,
Akregator::TreeNode *   
)
signal

emitted when a child was removed

void Folder::slotAddToFetchQueue ( Akregator::FetchQueue *  queue,
bool  intervalFetchesOnly = false 
)
slot

enqueues children recursively for fetching

Parameters
queuea fetch queue

Definition at line 353 of file folder.cpp.

void Folder::slotChildChanged ( Akregator::TreeNode *  node)
slot

Called when a child was modified.

Parameters
nodethe child that was changed

Definition at line 325 of file folder.cpp.

void Folder::slotChildDestroyed ( Akregator::TreeNode *  node)
slot

Called when a child was destroyed.

Parameters
nodethe child that was destroyed

Definition at line 331 of file folder.cpp.

bool Folder::subtreeContains ( const Akregator::TreeNode *  node) const

Definition at line 338 of file folder.cpp.

QDomElement Folder::toOPML ( QDomElement  parent,
QDomDocument  document 
) const
virtual

converts the feed group into OPML format for save and export and appends it to node parent in document .

Children are processed and appended recursively.

Parameters
parentThe parent element
documentThe DOM document
Returns
The newly created element representing this feed group

Implements Akregator::TreeNode.

Definition at line 110 of file folder.cpp.

int Folder::totalCount ( ) const
virtual

returns the number of articles in all children

Returns
number of articles

Implements Akregator::TreeNode.

Definition at line 301 of file folder.cpp.

int Folder::unread ( ) const
virtual

returns the number of unread articles in all children

Returns
number of unread articles

Implements Akregator::TreeNode.

Definition at line 296 of file folder.cpp.


The documentation for this class was generated from the following files:
  • folder.h
  • folder.cpp
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

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal