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()) {
Generator generator() const
description of the agent used to generate the feed.
Definition: atom/document.cpp:84
void append(const T &value)
time_t updated() const
The datetime of the last modification of the feed content.
Definition: atom/document.cpp:123
QList< Person > authors() const
a list of persons who are the authors of this feed.
Definition: atom/document.cpp:45
bool isNull() const const
QString logo() const
URL of an image serving as a feed logo (optional)
Definition: atom/document.cpp:98
QDomElement toElement() const const
int count(const T &value) const const
bool accept(DocumentVisitor *visitor) override
Used by visitors for double dispatch.
Definition: atom/document.cpp:275
bool isNull() const const
Definition: atom/document.h:17
QDomNode at(int index) const const
int size() const const
QString debugInfo() const override
returns a description of this entry document for debugging purposes.
Definition: atom/document.cpp:290
QString namespaceURI() const const
FeedDocument()
default constructor, creates a null feed, which is invalid.
Definition: atom/document.cpp:30
void reserve(int alloc)
an Atom entry, equivalent to the "items" in the RSS world.
Definition: entry.h:38
QString debugInfo() const override
returns a description of this feed document for debugging purposes.
Definition: atom/document.cpp:200
Visitor interface, following the Visitor design pattern.
Definition: documentvisitor.h:42
QString localName() const const
QString debugInfo() const
a description of this generator for debugging purposes.
Definition: generator.cpp:42
QList< Person > contributors() const
a list of persons who contribute to this feed.
Definition: atom/document.cpp:58
bool isEmpty() const const
Description of the agent used to generate the feed.
Definition: generator.h:25
QString id() const
a string that unambiguously identifies the feed (required)
Definition: atom/document.cpp:103
Entry entry() const
returns the single entry described in the source.
Definition: atom/document.cpp:280
QList::const_iterator cend() const const
QString debugInfo() const
returns a description of this entry for debugging purposes
Definition: entry.cpp:178
KCALUTILS_EXPORT QString dateTimeToString(const QDateTime &date, bool dateOnly=false, bool shortfmt=true)
bool isValid() const override
returns whether this document is valid or not.
Definition: atom/document.cpp:285
EntryDocument()
default constructor, creates a null document, which is invalid.
Definition: atom/document.cpp:265
bool accept(DocumentVisitor *visitor) override
Used by visitors for double dispatch.
Definition: atom/document.cpp:40
QString extractAtomText(const Syndication::ElementWrapper &parent, const QString &tagname)
extracts the content of an atomTextConstruct.
Definition: atomtools.cpp:21
QList< Entry > entries() const
a list of the entries (items) in this feed.
Definition: atom/document.cpp:142
QList::const_iterator cbegin() const const
QString icon() const
URL of an image serving as a feed icon (optional)
Definition: atom/document.cpp:89
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
bool isValid() const override
returns whether this document is valid or not.
Definition: atom/document.cpp:195
QString subtitle() const
description or subtitle of the feed (optional).
Definition: atom/document.cpp:118
QList< Category > categories() const
a list of categories this feed is assigned to (optional)
Definition: atom/document.cpp:71
QList< QDomElement > unhandledElements() const
returns all child elements of this feed not covered by this class.
Definition: atom/document.cpp:159
virtual bool visitAtomEntryDocument(Syndication::Atom::EntryDocument *document)
reimplement this method to handle Atom entry documents.
Definition: documentvisitor.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 4 2023 03:51:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 4 2023 03:51:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.