Search for usage in LXR

Syndication::RSS2::Category Class Reference

#include <category.h>

Inheritance diagram for Syndication::RSS2::Category:

Public Member Functions

 Category ()
 Category (const QDomElement &element)
QString category () const
QString debugInfo () const
QString domain () const
- Public Member Functions inherited from Syndication::ElementWrapper
 ElementWrapper ()
 ElementWrapper (const ElementWrapper &other)
 ElementWrapper (const QDomElement &element)
virtual ~ElementWrapper ()
QString attribute (const QString &name, const QString &defValue=QString()) const
QString attributeNS (const QString &nsURI, const QString &localName, const QString &defValue=QString()) const
QString childNodesAsXML () const
QString completeURI (const QString &uri) const
const QDomElementelement () const
QList< QDomElementelementsByTagName (const QString &tagName) const
QList< QDomElementelementsByTagNameNS (const QString &nsURI, const QString &tagName) const
QString extractElementText (const QString &tagName) const
QString extractElementTextNS (const QString &namespaceURI, const QString &localName) const
QDomElement firstElementByTagNameNS (const QString &nsURI, const QString &tagName) const
bool hasAttribute (const QString &name) const
bool hasAttributeNS (const QString &nsURI, const QString &localName) const
bool isNull () const
ElementWrapperoperator= (const ElementWrapper &other)
bool operator== (const ElementWrapper &other) const
QString text () const
QString xmlBase () const
QString xmlLang () const

Additional Inherited Members

- Static Public Member Functions inherited from Syndication::ElementWrapper
static QString childNodesAsXML (const QDomElement &parent)

Detailed Description

A category which can be assigned to items or whole feeds.

These can be simple tags as known from delicious or Technorati, or a category from a hierarchical taxonomy or ontology.

Frank Osterfeld

Definition at line 27 of file rss2/category.h.

Constructor & Destructor Documentation

◆ Category() [1/2]

Syndication::RSS2::Category::Category ( const QDomElement element)

Creates a Category object wrapping a <category> XML element.

elementThe <category> element to wrap

Definition at line 22 of file rss2/category.cpp.

◆ Category() [2/2]

Syndication::RSS2::Category::Category ( )

Default constructor, creates a null object, for which isNull() is true.

Definition at line 17 of file rss2/category.cpp.

Member Function Documentation

◆ category()

QString Syndication::RSS2::Category::category ( ) const

Name of the category.

This is both to be used as identifier and as human-readable string. It can bea forward-slash-separated string to identify a hierarchic location in the domain indicated by domain(). Examples: "General", "Programming", "Funny", "Books/History".

The category identifier/name as string or a null string for null objects.

Definition at line 26 of file rss2/category.cpp.

◆ debugInfo()

QString Syndication::RSS2::Category::debugInfo ( ) const

Returns a description of the object for debugging purposes.

debug string

Definition at line 36 of file rss2/category.cpp.

◆ domain()

QString Syndication::RSS2::Category::domain ( ) const

optional, identifies the domain of the category, i.e.

a categorization taxonomy.

The domain of the category, or a null string if none is set (and for null objects)

Definition at line 31 of file rss2/category.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:01:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.