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 | #ifndef SYNDICATION_MAPPERRSS2IMPL_H |
9 | #define |
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 | class : public Mapper<Feed> |
21 | { |
22 | QSharedPointer<Feed> (SpecificDocumentPtr doc) const override |
23 | { |
24 | return QSharedPointer<Feed>(new FeedRSS2Impl(doc.staticCast<RSS2::Document>())); |
25 | } |
26 | }; |
27 | |
28 | } // namespace Syndication |
29 | |
30 | #endif // SYNDICATION_MAPPERRSS2IMPL_H |
31 | |