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_CATEGORYATOMIMPL_H |
9 | #define SYNDICATION_MAPPER_CATEGORYATOMIMPL_H |
10 | |
11 | #include <atom/category.h> |
12 | #include <category.h> |
13 | |
14 | namespace Syndication |
15 | { |
16 | class CategoryAtomImpl; |
17 | typedef QSharedPointer<CategoryAtomImpl> CategoryAtomImplPtr; |
18 | |
19 | class CategoryAtomImpl : public Syndication::Category |
20 | { |
21 | public: |
22 | explicit CategoryAtomImpl(const Syndication::Atom::Category &category); |
23 | |
24 | Q_REQUIRED_RESULT bool isNull() const override; |
25 | |
26 | Q_REQUIRED_RESULT QString term() const override; |
27 | |
28 | Q_REQUIRED_RESULT QString scheme() const override; |
29 | |
30 | Q_REQUIRED_RESULT QString label() const override; |
31 | |
32 | private: |
33 | Syndication::Atom::Category m_category; |
34 | }; |
35 | |
36 | } // namespace Syndication |
37 | |
38 | #endif // SYNDICATION_MAPPER_CATEGORYATOMIMPL_H |
39 | |