File indexing completed on 2024-04-14 03:58:25

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_CATEGORYATOMIMPL_H
0009 #define SYNDICATION_MAPPER_CATEGORYATOMIMPL_H
0010 
0011 #include <atom/category.h>
0012 #include <category.h>
0013 
0014 namespace Syndication
0015 {
0016 class CategoryAtomImpl;
0017 typedef QSharedPointer<CategoryAtomImpl> CategoryAtomImplPtr;
0018 
0019 /**
0020  *
0021  * @internal
0022  * @author Frank Osterfeld
0023  */
0024 class CategoryAtomImpl : public Syndication::Category
0025 {
0026 public:
0027     explicit CategoryAtomImpl(const Syndication::Atom::Category &category);
0028 
0029     Q_REQUIRED_RESULT bool isNull() const override;
0030 
0031     Q_REQUIRED_RESULT QString term() const override;
0032 
0033     Q_REQUIRED_RESULT QString scheme() const override;
0034 
0035     Q_REQUIRED_RESULT QString label() const override;
0036 
0037 private:
0038     Syndication::Atom::Category m_category;
0039 };
0040 
0041 } // namespace Syndication
0042 
0043 #endif // SYNDICATION_MAPPER_CATEGORYATOMIMPL_H