Syndication::RSS2::Source Class Reference

#include <source.h>

Inheritance diagram for Syndication::RSS2::Source:

Public Member Functions

 Source ()
 Source (const QDomElement &element)
QString debugInfo () const
QString source () const
QString url () 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

Class representing the <source> element in RSS2.

"The purpose of this element is to propagate credit for links, to publicize the sources of news items. It's used in the post command in the Radio UserLand aggregator. It should be generated automatically when forwarding an item from an aggregator to a weblog authoring tool."

Frank Osterfeld

Definition at line 30 of file rss2/source.h.

Constructor & Destructor Documentation

Syndication::RSS2::Source::Source ( )

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

Definition at line 18 of file rss2/source.cpp.

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

Creates a source object wrapping a <source> XML element.

elementThe <source> element to wrap

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

Member Function Documentation

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

Returns a description of the object for debugging purposes.

debug string

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

QString Syndication::RSS2::Source::source ( ) const

The name of the RSS channel that the item came from, derived from its <title>.

Example: "Tomalak's Realm"

A string containing the source, or a null string if not set (and for null objects)

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

QString Syndication::RSS2::Source::url ( ) const

Required attribute, links to the XMLization of the source.

A URL, or a null string if not set (though required from the spec), and for null objects

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

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:06:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.