File indexing completed on 2024-04-21 04:01:01

0001 /*
0002     This file is part of the syndication library
0003     SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef SYNDICATION_MAPPER_MAPPERATOMIMPL_H
0009 #define SYNDICATION_MAPPER_MAPPERATOMIMPL_H
0010 
0011 #include "feedatomimpl.h"
0012 
0013 #include <atom/document.h>
0014 #include <feed.h>
0015 #include <mapper.h>
0016 #include <specificdocument.h>
0017 
0018 namespace Syndication
0019 {
0020 /** @internal */
0021 class AtomMapper : public Mapper<Feed>
0022 {
0023     QSharedPointer<Feed> map(SpecificDocumentPtr doc) const override
0024     {
0025         return QSharedPointer<Feed>(new FeedAtomImpl(doc.staticCast<Atom::FeedDocument>()));
0026     }
0027 };
0028 
0029 } // namespace Syndication
0030 
0031 #endif // SYNDICATION_MAPPER_MAPPERATOMIMPL_H