Syndication::SpecificItemVisitor
#include <specificitemvisitor.h>
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
Definition at line 41 of file specificitemvisitor.h.
Constructor & Destructor Documentation
◆ ~SpecificItemVisitor()
|
virtual |
destructor
Definition at line 13 of file specificitemvisitor.cpp.
Member Function Documentation
◆ visit()
|
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 17 of file specificitemvisitor.cpp.
◆ visitAtomEntry()
|
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 32 of file specificitemvisitor.cpp.
◆ visitRDFItem()
|
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 27 of file specificitemvisitor.cpp.
◆ visitRSS2Item()
|
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 22 of file specificitemvisitor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.