Syndication

mapperatomimpl.h
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_MAPPER_MAPPERATOMIMPL_H
9#define SYNDICATION_MAPPER_MAPPERATOMIMPL_H
10
11#include "feedatomimpl.h"
12
13#include <atom/document.h>
14#include <feed.h>
15#include <mapper.h>
16#include <specificdocument.h>
17
18namespace Syndication
19{
20/** @internal */
21class AtomMapper : public Mapper<Feed>
22{
23 QSharedPointer<Feed> map(SpecificDocumentPtr doc) const override
24 {
25 return QSharedPointer<Feed>(new FeedAtomImpl(doc.staticCast<Atom::FeedDocument>()));
26 }
27};
28
29} // namespace Syndication
30
31#endif // SYNDICATION_MAPPER_MAPPERATOMIMPL_H
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries.
A mapper maps an SpecificDocument to something else.
Definition mapper.h:92
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.