Syndication::CategoryRSS2Impl

Search for usage in LXR

Syndication::CategoryRSS2Impl Class Reference

#include <categoryrss2impl.h>

Inheritance diagram for Syndication::CategoryRSS2Impl:

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

Author
Frank Osterfeld

Definition at line 24 of file categoryrss2impl.h.

Constructor & Destructor Documentation

◆ CategoryRSS2Impl()

Syndication::CategoryRSS2Impl::CategoryRSS2Impl ( const Syndication::RSS2::Category & category)
explicit

Definition at line 14 of file categoryrss2impl.cpp.

Member Function Documentation

◆ isNull()

bool Syndication::CategoryRSS2Impl::isNull ( ) const
overridevirtual

returns whether this object is a null category

Implements Syndication::Category.

Definition at line 19 of file categoryrss2impl.cpp.

◆ label()

QString Syndication::CategoryRSS2Impl::label ( ) const
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()

QString Syndication::CategoryRSS2Impl::scheme ( ) const
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()

QString Syndication::CategoryRSS2Impl::term ( ) const
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:
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.