Syndication

specificitemvisitor.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #include "specificitemvisitor.h"
9 #include "specificitem.h"
10 
11 namespace Syndication
12 {
14 {
15 }
16 
18 {
19  return item->accept(this);
20 }
21 
22 bool SpecificItemVisitor::visitRSS2Item(Syndication::RSS2::Item *)
23 {
24  return false;
25 }
26 
27 bool SpecificItemVisitor::visitRDFItem(Syndication::RDF::Item *)
28 {
29  return false;
30 }
31 
33 {
34  return false;
35 }
36 
37 } // namespace Syndication
Interface for all format-specific item-like classes, such as RSS2/RDF items, and Atom entries.
Definition: specificitem.h:31
virtual bool visitRSS2Item(Syndication::RSS2::Item *item)
reimplement this method to handle RSS2 items.
virtual bool visitRDFItem(Syndication::RDF::Item *item)
reimplement this method to handle RDF items.
an Atom entry, equivalent to the "items" in the RSS world.
Definition: entry.h:38
virtual bool visit(SpecificItem *item)
call this method to handle an item.
virtual bool visitAtomEntry(Syndication::Atom::Entry *item)
reimplement this method to handle Atom entries.
virtual bool accept(SpecificItemVisitor *visitor)=0
This must be implemented for the double dispatch technique (Visitor pattern).
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:49:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.