Syndication::CategoryRSS2Impl
#include <categoryrss2impl.h>
Public Member Functions | |
CategoryRSS2Impl (const Syndication::RSS2::Category &category) | |
bool | isNull () const override |
QString | label () const override |
QString | scheme () const override |
QString | term () const override |
Public Member Functions inherited from Syndication::Category | |
virtual | ~Category () |
virtual QString | debugInfo () const |
Detailed Description
Definition at line 24 of file categoryrss2impl.h.
Constructor & Destructor Documentation
◆ CategoryRSS2Impl()
|
explicit |
Definition at line 14 of file categoryrss2impl.cpp.
Member Function Documentation
◆ isNull()
|
overridevirtual |
returns whether this object is a null category
Implements Syndication::Category.
Definition at line 19 of file categoryrss2impl.cpp.
◆ label()
|
overridevirtual |
An optional human-readable label of the category.
If specified, this string should be used to represent this category in a user interface. If not specified, use term() instead. TODO: specify format (HTML, plain text?) and enforce it in the impl
- Returns
- the label of this category, or a null string if not specified
Implements Syndication::Category.
Definition at line 34 of file categoryrss2impl.cpp.
◆ scheme()
|
overridevirtual |
An optional scheme the term is part of.
This can be some vocabulary/ontology such as Dublin Core. Think of it as the term's namespace, grouping a set of categories. When managing categories, scheme() + term() identifies a category unambiguously and can be used as key.
- Returns
- the scheme this category is part of, or a null string if not specified
Implements Syndication::Category.
Definition at line 29 of file categoryrss2impl.cpp.
◆ term()
|
overridevirtual |
A term identifying the category, e.g.
"general", "life", "books" or "Basketball & other sport I like". The term must be unique in its scheme (see scheme()).
In user interfaces, use it only if there is no label() available. TODO: specify format (HTML, plain text?) and enforce it in the impl
- Returns
- category term. This string is never empty.
Implements Syndication::Category.
Definition at line 24 of file categoryrss2impl.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:48:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.