• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

Syndication Library

Syndication::SpecificItemVisitor

Syndication::SpecificItemVisitor Class Reference

Visitor interface, following the Visitor design pattern. More...

#include <specificitemvisitor.h>

List of all members.

Public Member Functions

virtual ~SpecificItemVisitor ()
virtual bool visit (SpecificItem *item)
virtual bool visitAtomEntry (Syndication::Atom::Entry *item)
virtual bool visitRDFItem (Syndication::RDF::Item *item)
virtual bool visitRSS2Item (Syndication::RSS2::Item *item)

Detailed Description

Visitor interface, following the Visitor design pattern.

Use this if you want to process items and the way how to handle the items depends on it's concrete type (e.g. RSS2::Item, RDF::Item...).

TODO: insert code example

Author:
Frank Osterfeld

Definition at line 55 of file specificitemvisitor.h.


Constructor & Destructor Documentation

Syndication::SpecificItemVisitor::~SpecificItemVisitor (  )  [virtual]

destructor

Definition at line 29 of file specificitemvisitor.cpp.


Member Function Documentation

bool Syndication::SpecificItemVisitor::visit ( SpecificItem *  item  )  [virtual]

call this method to handle an item.

Depending on the concrete type of the item, a specialized visit method is called.

Parameters:
item the item to process
Returns:
whether this visitor handles the type of the item

Definition at line 33 of file specificitemvisitor.cpp.

bool Syndication::SpecificItemVisitor::visitAtomEntry ( Syndication::Atom::Entry *  item  )  [virtual]

reimplement this method to handle Atom entries.

Parameters:
item the Atom entry to visit
Returns:
whether the visitor handled the entry. Reimplementations of this method must return true.

Definition at line 48 of file specificitemvisitor.cpp.

bool Syndication::SpecificItemVisitor::visitRDFItem ( Syndication::RDF::Item *  item  )  [virtual]

reimplement this method to handle RDF items.

Parameters:
item the RDF item to visit
Returns:
whether the visitor handled the item. Reimplementations of this method must return true.

Definition at line 43 of file specificitemvisitor.cpp.

bool Syndication::SpecificItemVisitor::visitRSS2Item ( Syndication::RSS2::Item *  item  )  [virtual]

reimplement this method to handle RSS2 items.

Parameters:
item the RSS2 item to visit
Returns:
whether the visitor handled the item. Reimplementations of this method must return true.

Definition at line 38 of file specificitemvisitor.cpp.


The documentation for this class was generated from the following files:
  • specificitemvisitor.h
  • specificitemvisitor.cpp

Syndication Library

Skip menu "Syndication Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal