Syndication
atom/document.cpp
60 const QList<QDomElement> a = elementsByTagNameNS(atom1Namespace(), QStringLiteral("contributor"));
150 std::transform(a.cbegin(), a.cend(), std::back_inserter(list), [&feedAuthors](const QDomElement &element) {
162 static std::vector<ElementType> handled; // QVector would require a default ctor, and ElementType is too big for QList
187 && std::find(handled.cbegin(), handled.cend(), ElementType(el.localName(), el.namespaceURI())) == handled.cend()) {
bool isValid() const override
returns whether this document is valid or not.
Definition atom/document.cpp:285
bool accept(DocumentVisitor *visitor) override
Used by visitors for double dispatch.
Definition atom/document.cpp:275
EntryDocument()
default constructor, creates a null document, which is invalid.
Definition atom/document.cpp:265
Entry entry() const
returns the single entry described in the source.
Definition atom/document.cpp:280
QString debugInfo() const override
returns a description of this entry document for debugging purposes.
Definition atom/document.cpp:290
an Atom entry, equivalent to the "items" in the RSS world.
Definition entry.h:39
QString debugInfo() const
returns a description of this entry for debugging purposes
Definition entry.cpp:178
time_t updated() const
The datetime of the last modification of the feed content.
Definition atom/document.cpp:123
bool isValid() const override
returns whether this document is valid or not.
Definition atom/document.cpp:195
bool accept(DocumentVisitor *visitor) override
Used by visitors for double dispatch.
Definition atom/document.cpp:40
QString subtitle() const
description or subtitle of the feed (optional).
Definition atom/document.cpp:118
QString logo() const
URL of an image serving as a feed logo (optional)
Definition atom/document.cpp:98
QList< QDomElement > unhandledElements() const
returns all child elements of this feed not covered by this class.
Definition atom/document.cpp:159
QString debugInfo() const override
returns a description of this feed document for debugging purposes.
Definition atom/document.cpp:200
QList< Category > categories() const
a list of categories this feed is assigned to (optional)
Definition atom/document.cpp:71
QList< Entry > entries() const
a list of the entries (items) in this feed.
Definition atom/document.cpp:142
QList< Person > contributors() const
a list of persons who contribute to this feed.
Definition atom/document.cpp:58
QString icon() const
URL of an image serving as a feed icon (optional)
Definition atom/document.cpp:89
FeedDocument()
default constructor, creates a null feed, which is invalid.
Definition atom/document.cpp:30
QList< Person > authors() const
a list of persons who are the authors of this feed.
Definition atom/document.cpp:45
Generator generator() const
description of the agent used to generate the feed.
Definition atom/document.cpp:84
QString id() const
a string that unambiguously identifies the feed (required)
Definition atom/document.cpp:103
Description of the agent used to generate the feed.
Definition generator.h:26
QString debugInfo() const
a description of this generator for debugging purposes.
Definition generator.cpp:42
Visitor interface, following the Visitor design pattern.
Definition documentvisitor.h:43
virtual bool visitAtomFeedDocument(Syndication::Atom::FeedDocument *document)
reimplement this method to handle Atom feed documents (most Atom feeds are of this type).
Definition documentvisitor.cpp:32
virtual bool visitAtomEntryDocument(Syndication::Atom::EntryDocument *document)
reimplement this method to handle Atom entry documents.
Definition documentvisitor.cpp:37
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
QString completeURI(const QString &uri) const
completes relative URIs with a prefix specified via xml:base.
Definition elementwrapper.cpp:121
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
QString extractElementTextNS(const QString &namespaceURI, const QString &localName) const
extracts the text from a child element, respecting namespaces.
Definition elementwrapper.cpp:162
QString extractAtomText(const Syndication::ElementWrapper &parent, const QString &tagname)
extracts the content of an atomTextConstruct.
Definition atomtools.cpp:21
QDomNodeList childNodes() const const
bool isNull() const const
QString localName() 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)
const_iterator cbegin() const const
const_iterator cend() const const
qsizetype count() const const
void reserve(qsizetype size)
bool isEmpty() const const
bool isNull() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.