Syndication

categoryatomimpl.cpp
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 #include "categoryatomimpl.h"
9 
10 #include <QString>
11 
12 namespace Syndication
13 {
14 CategoryAtomImpl::CategoryAtomImpl(const Syndication::Atom::Category &category)
15  : m_category(category)
16 {
17 }
18 
20 {
21  return m_category.isNull();
22 }
23 
25 {
26  return m_category.term();
27 }
28 
30 {
31  return m_category.scheme();
32 }
33 
35 {
36  return m_category.label();
37 }
38 
39 } // namespace Syndication
QString label() const override
An optional human-readable label of the category.
QString scheme() const override
An optional scheme the term is part of.
A category for categorizing items or whole feeds.
Definition: atom/category.h:31
QString term() const override
A term identifying the category, e.g.
bool isNull() const override
returns whether this object is a null category
Category category(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Nov 30 2023 03:51:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.