Syndication

category.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 "category.h"
9 
10 namespace Syndication
11 {
13 {
14 }
15 
17 {
18  QString info = QLatin1String("# Category begin ##################\n");
19 
20  QString dterm = term();
21 
22  if (!dterm.isNull()) {
23  info += QLatin1String("term: #") + dterm + QLatin1String("#\n");
24  }
25 
26  QString dscheme = scheme();
27 
28  if (!dscheme.isNull()) {
29  info += QLatin1String("scheme: #") + dscheme + QLatin1String("#\n");
30  }
31 
32  QString dlabel = label();
33 
34  if (!dlabel.isNull()) {
35  info += QLatin1String("label: #") + dlabel + QLatin1String("#\n");
36  }
37 
38  info += QLatin1String("# Category end ####################\n");
39 
40  return info;
41 }
42 
43 } // namespace Syndication
virtual QString debugInfo() const
Description of the category for debugging purposes.
Definition: category.cpp:16
virtual QString term() const =0
A term identifying the category, e.g.
virtual QString label() const =0
An optional human-readable label of the category.
bool isNull() const const
virtual QString scheme() const =0
An optional scheme the term is part of.
virtual ~Category()
destructor
Definition: category.cpp:12
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Nov 29 2021 22:54:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.