Syndication

category.cpp
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#include "category.h"
9
10namespace Syndication
11{
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 ~Category()
destructor
Definition category.cpp:12
virtual QString label() const =0
An optional human-readable label of the category.
virtual QString scheme() const =0
An optional scheme the term is part of.
virtual QString term() const =0
A term identifying the category, e.g.
virtual QString debugInfo() const
Description of the category for debugging purposes.
Definition category.cpp:16
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.