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 
23 {
24  return false;
25 }
26 
28 {
29  return false;
30 }
31 
33 {
34  return false;
35 }
36 
37 } // namespace Syndication
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.
Interface for all format-specific item-like classes, such as RSS2/RDF items, and Atom entries...
Definition: specificitem.h:31
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 accept(SpecificItemVisitor *visitor)=0
This must be implemented for the double dispatch technique (Visitor pattern).
An RSS 1.0 item.
Definition: rdf/item.h:34
virtual bool visitAtomEntry(Syndication::Atom::Entry *item)
reimplement this method to handle Atom entries.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 22:54:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.