Syndication
rss2/document.cpp
168 std::transform(catNodes.cbegin(), catNodes.cend(), std::back_inserter(categories), [](const QDomElement &element) {
224 const QList<QDomElement> hours = skipHoursWrapper.elementsByTagNameNS(QString(), QStringLiteral("hour"));
256 const QList<QDomElement> days = skipDaysWrapper.elementsByTagNameNS(QString(), QStringLiteral("day"));
280 std::transform(itemNodes.cbegin(), itemNodes.cend(), std::back_inserter(items), [&doccpy](const QDomElement &element) {
289 static std::vector<ElementType> handled; // QVector would require a default ctor, and ElementType is too big for QList
323 && std::find(handled.cbegin(), handled.cend(), ElementType(el.localName(), el.namespaceURI())) == handled.cend()) {
402 QDomElement titleEl = (*litems.begin()).firstElementByTagNameNS(QString(), QStringLiteral("title"));
438 QDomElement descEl = (*litems.begin()).firstElementByTagNameNS(QString(), QStringLiteral("description"));
Visitor interface, following the Visitor design pattern.
Definition documentvisitor.h:43
virtual bool visitRSS2Document(Syndication::RSS2::Document *document)
reimplement this method to handle RSS2-like (RSS 0.9x, 2.0) documents.
Definition documentvisitor.cpp:22
QString text() const
Returns the wrapped element's text or an empty string.
Definition elementwrapper.cpp:254
QDomElement firstElementByTagNameNS(const QString &nsURI, const QString &tagName) const
searches the direct children of the wrapped element for an element with a given namespace and tag nam...
Definition elementwrapper.cpp:218
bool isNull() const
returns whether the wrapped element is a null element
Definition elementwrapper.cpp:68
QList< QDomElement > elementsByTagNameNS(const QString &nsURI, const QString &tagName) const
returns all child elements with tag name tagname and namespace URI nsURI.
Definition elementwrapper.cpp:236
ElementWrapper & operator=(const ElementWrapper &other)
Assigns another element wrapper to this one.
Definition elementwrapper.cpp:57
QString extractElementTextNS(const QString &namespaceURI, const QString &localName) const
extracts the text from a child element, respecting namespaces.
Definition elementwrapper.cpp:162
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition cloud.cpp:57
document implementation, representing an RSS feed from the 0.91-0.94/2.0 family.
Definition rss2/document.h:44
QString debugInfo() const override
Returns a description of the object and its children for debugging purposes.
Definition rss2/document.cpp:331
time_t lastBuildDate() const
The last time the content of the channel changed.
Definition rss2/document.cpp:154
QString link() const
The URL to the HTML website corresponding to the channel.
Definition rss2/document.cpp:98
QSet< int > skipHours() const
Contains a set of hours (from 0 to 23), time in GMT, when the channel is not updated.
Definition rss2/document.cpp:217
bool accept(DocumentVisitor *visitor) override
Used by visitors for double dispatch.
Definition rss2/document.cpp:463
static Document fromXML(const QDomDocument &document)
Parses an RSS2 document from an XML document.
Definition rss2/document.cpp:57
time_t pubDate() const
The publication date for the content in the channel.
Definition rss2/document.cpp:141
QString docs() const
A URL that points to the documentation for the format used in the RSS file.
Definition rss2/document.cpp:180
Image image() const
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
Definition rss2/document.cpp:200
TextInput textInput() const
Specifies a text input box that can be displayed with the channel.
Definition rss2/document.cpp:205
QString description() const
Phrase or sentence describing the channel.
Definition rss2/document.cpp:103
bool isValid() const override
returns whether this document is valid or not.
Definition rss2/document.cpp:88
QString copyright() const
Copyright notice for content in the channel.
Definition rss2/document.cpp:120
QString managingEditor() const
Email address for person responsible for editorial content.
Definition rss2/document.cpp:131
QSet< DayOfWeek > skipDays() const
A set of week days where aggregators shouldn't read the channel.
Definition rss2/document.cpp:236
QList< QDomElement > unhandledElements() const
returns all child elements of this document not covered by this class.
Definition rss2/document.cpp:286
Cloud cloud() const
Allows processes to register with a cloud to be notified of updates to the channel,...
Definition rss2/document.cpp:185
QString generator() const
A string indicating the program used to generate the channel.
Definition rss2/document.cpp:175
QString webMaster() const
Email address for person responsible for technical issues relating to channel.
Definition rss2/document.cpp:136
Document()
Default constructor, creates a null object, for which isNull() is true and isValid() is false.
Definition rss2/document.cpp:64
QList< Category > categories() const
Specifies one or more categories that the channel belongs to.
Definition rss2/document.cpp:161
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition rss2/image.cpp:68
"The purpose of the <textInput> element is something of a mystery.
Definition rss2/textinput.h:28
QString debugInfo() const
Returns a description of the object for debugging purposes.
Definition rss2/textinput.cpp:47
Document interface for format-specific feed documents as parsed from a document source (see DocumentS...
Definition specificdocument.h:39
QString text() const const
QDomNodeList childNodes() const const
QDomNode firstChild() const const
bool isCDATASection() const const
bool isNull() const const
QString localName() const const
QDomNode namedItem(const QString &name) const const
QString namespaceURI() const const
QDomElement toElement() const const
QDomNode at(int index) const const
int size() const const
void append(QList< T > &&value)
iterator begin()
const_iterator cbegin() const const
const_iterator cend() const const
qsizetype count() const const
bool isEmpty() const const
void reserve(qsizetype size)
qsizetype size() const const
bool isNull() const const
int toInt(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.