Syndication

documentvisitor.h
1 /*
2  * This file is part of the syndication library
3  *
4  * Copyright (C) 2005 Frank Osterfeld <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You must have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 #ifndef SYNDICATION_DOCUMENTVISITOR_H
23 #define SYNDICATION_DOCUMENTVISITOR_H
24 
25 #include "syndication_export.h"
26 
27 namespace Syndication
28 {
29 
30 class SpecificDocument;
31 
32 namespace Atom
33 {
34 class EntryDocument;
35 class FeedDocument;
36 }
37 
38 namespace RDF
39 {
40 class Document;
41 }
42 
43 namespace RSS2
44 {
45 class Document;
46 }
47 
57 class SYNDICATION_EXPORT DocumentVisitor //krazy:exclude=dpointer
58 {
59 public:
60 
64  virtual ~DocumentVisitor();
65 
73  virtual bool visit(SpecificDocument *document);
74 
82  virtual bool visitRSS2Document(Syndication::RSS2::Document *document);
83 
91  virtual bool visitRDFDocument(Syndication::RDF::Document *document);
92 
101  virtual bool visitAtomFeedDocument(Syndication::Atom::FeedDocument *document);
102 
110  virtual bool visitAtomEntryDocument(Syndication::Atom::EntryDocument *document);
111 };
112 
113 } // namespace Syndication
114 
115 #endif // SYNDICATION_DOCUMENTVISITOR_H
document implementation, representing an RSS feed from the 0.91-0.94/2.0 family.
Definition: rss2/document.h:57
Document implementation for RDF, representing an RSS 1.0 feed.
Definition: rdf/document.h:53
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries...
Definition: atom/document.h:59
Visitor interface, following the Visitor design pattern.
Document interface for format-specific feed documents as parsed from a document source (see DocumentS...
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jun 2 2020 22:53:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.