Syndication

rss2/category.cpp
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2005 Frank Osterfeld <[email protected]>
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 
13 namespace Syndication
14 {
15 namespace 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 category() const
Name of the category.
Category()
Default constructor, creates a null object, for which isNull() is true.
QString simplified() const const
QString domain() const
optional, identifies the domain of the category, i.e.
QString debugInfo() const
Returns a description of the object for debugging purposes.
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.