Syndication::RSS2::Source
#include <source.h>
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."
Definition at line 29 of file rss2/source.h.
Constructor & Destructor Documentation
◆ Source() [1/2]
Syndication::RSS2::Source::Source | ( | ) |
Default constructor, creates a null object, for which isNull() is true
.
Definition at line 17 of file rss2/source.cpp.
◆ Source() [2/2]
|
explicit |
Creates a source object wrapping a <source>
XML element.
- Parameters
-
element The <source>
element to wrap
Definition at line 22 of file rss2/source.cpp.
Member Function Documentation
◆ debugInfo()
QString Syndication::RSS2::Source::debugInfo | ( | ) | const |
Returns a description of the object for debugging purposes.
- Returns
- debug string
Definition at line 37 of file rss2/source.cpp.
◆ source()
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"
- Returns
- A string containing the source, or a null string if not set (and for null objects)
Definition at line 27 of file rss2/source.cpp.
◆ url()
QString Syndication::RSS2::Source::url | ( | ) | const |
Required attribute, links to the XMLization of the source.
- Returns
- A URL, or a null string if not set (though required from the spec), and for null objects
Definition at line 32 of file rss2/source.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.