Syndication

categoryrss2impl.h
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
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 
14 namespace Syndication
15 {
16 class CategoryRSS2Impl;
17 typedef QSharedPointer<CategoryRSS2Impl> CategoryRSS2ImplPtr;
18 
19 /**
20  *
21  * @internal
22  * @author Frank Osterfeld
23  */
25 {
26 public:
27  explicit CategoryRSS2Impl(const Syndication::RSS2::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 label() const override;
34 
35  Q_REQUIRED_RESULT QString scheme() const override;
36 
37 private:
38  Syndication::RSS2::Category m_category;
39 };
40 
41 } // namespace Syndication
42 
43 #endif // SYNDICATION_MAPPER_CATEGORYRSS2IMPL_H
A category which can be assigned to items or whole feeds.
Definition: rss2/category.h:27
QString scheme() const override
An optional scheme the term is part of.
bool isNull() const override
returns whether this object is a null category
QString label() const override
An optional human-readable label of the category.
QString term() const override
A term identifying the category, e.g.
A category for categorizing items or whole feeds.
Definition: category.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.