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_CATEGORYRSS2IMPL_H
9#define SYNDICATION_MAPPER_CATEGORYRSS2IMPL_H
10
11#include <category.h>
12#include <rss2/category.h>
13
14namespace Syndication
15{
16class CategoryRSS2Impl;
17typedef QSharedPointer<CategoryRSS2Impl> CategoryRSS2ImplPtr;
18
19class CategoryRSS2Impl : public Syndication::Category
20{
21public:
22 explicit CategoryRSS2Impl(const Syndication::RSS2::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 label() const override;
29
30 Q_REQUIRED_RESULT QString scheme() const override;
31
32private:
33 Syndication::RSS2::Category m_category;
34};
35
36} // namespace Syndication
37
38#endif // SYNDICATION_MAPPER_CATEGORYRSS2IMPL_H
39

source code of syndication/src/mapper/categoryrss2impl.h