Syndication

rss2/category.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2005 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "category.h"
9#include "tools.h"
10
11#include <QString>
12
13namespace Syndication
14{
15namespace RSS2
16{
18 : ElementWrapper()
19{
20}
21
23 : ElementWrapper(element)
24{
25}
27{
28 return text().simplified();
29}
30
32{
33 return attribute(QStringLiteral("domain"));
34}
35
37{
38 QString info = QLatin1String("### Category: ###################\n");
39 if (!category().isNull()) {
40 info += QLatin1String("category: #") + category() + QLatin1String("#\n");
41 }
42 if (!domain().isNull()) {
43 info += QLatin1String("domain: #") + domain() + QLatin1String("#\n");
44 }
45 info += QLatin1String("### Category end ################\n");
46 return info;
47}
48
49} // namespace RSS2
50} // namespace Syndication
QString debugInfo() const
Returns a description of the object for debugging purposes.
QString domain() const
optional, identifies the domain of the category, i.e.
Category()
Default constructor, creates a null object, for which isNull() is true.
QString category() const
Name of the category.
QString simplified() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:15 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.