Syndication

specificitemvisitor.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "specificitemvisitor.h"
9#include "specificitem.h"
10
11namespace Syndication
12{
16
18{
19 return item->accept(this);
20}
21
22bool SpecificItemVisitor::visitRSS2Item(Syndication::RSS2::Item *)
23{
24 return false;
25}
26
27bool SpecificItemVisitor::visitRDFItem(Syndication::RDF::Item *)
28{
29 return false;
30}
31
36
37} // namespace Syndication
an Atom entry, equivalent to the "items" in the RSS world.
Definition entry.h:39
virtual bool visitRSS2Item(Syndication::RSS2::Item *item)
reimplement this method to handle RSS2 items.
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 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.
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-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.