Syndication

mapperrss2impl.h
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 #ifndef SYNDICATION_MAPPERRSS2IMPL_H
9 #define SYNDICATION_MAPPERRSS2IMPL_H
10 
11 #include "feedrss2impl.h"
12 
13 #include <feed.h>
14 #include <mapper.h>
15 #include <rss2/document.h>
16 #include <specificdocument.h>
17 
18 namespace Syndication
19 {
20 /** @internal */
21 class RSS2Mapper : public Mapper<Feed>
22 {
23  QSharedPointer<Feed> map(SpecificDocumentPtr doc) const override
24  {
25  return QSharedPointer<Feed>(new FeedRSS2Impl(doc.staticCast<RSS2::Document>()));
26  }
27 };
28 
29 } // namespace Syndication
30 
31 #endif // SYNDICATION_MAPPERRSS2IMPL_H
document implementation, representing an RSS feed from the 0.91-0.94/2.0 family.
Definition: rss2/document.h:43
A mapper maps an SpecificDocument to something else.
Definition: mapper.h:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 22:54:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.