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 | /** |
20 | * |
21 | * @internal |
22 | * @author Frank Osterfeld |
23 | */ |
24 | class CategoryAtomImpl : public Syndication::Category |
25 | { |
26 | public: |
27 | explicit CategoryAtomImpl(const Syndication::Atom::Category &category); |
28 | |
29 | Q_REQUIRED_RESULT bool isNull() const override; |
30 | |
31 | Q_REQUIRED_RESULT QString term() const override; |
32 | |
33 | Q_REQUIRED_RESULT QString scheme() const override; |
34 | |
35 | Q_REQUIRED_RESULT QString label() const override; |
36 | |
37 | private: |
38 | Syndication::Atom::Category m_category; |
39 | }; |
40 | |
41 | } // namespace Syndication |
42 | |
43 | #endif // SYNDICATION_MAPPER_CATEGORYATOMIMPL_H |
44 | |