Syndication Library
25 #include "enclosure.h"
29 #include <QtCore/QList>
30 #include <QtCore/QString>
42 info += QLatin1String(
"# Item begin ######################\n");
46 info += QLatin1String(
"id: #") + did + QLatin1String(
"#\n");
48 QString dtitle =
title();
50 info += QLatin1String(
"title: #") + dtitle + QLatin1String(
"#\n");
52 QString dlink =
link();
54 info += QLatin1String(
"link: #") + dlink + QLatin1String(
"#\n");
57 if (!ddescription.isNull())
58 info += QLatin1String(
"description: #") + ddescription + QLatin1String(
"#\n");
61 if (!dcontent.isNull())
62 info += QLatin1String(
"content: #") + dcontent + QLatin1String(
"#\n");
65 if (!pubdate.isNull())
66 info += QLatin1String(
"datePublished: #") + pubdate + QLatin1String(
"#\n");
70 info += QLatin1String(
"dateUpdated: #") + update + QLatin1String(
"#\n");
73 if (!dlanguage.isNull())
74 info += QLatin1String(
"language: #") + dlanguage + QLatin1String(
"#\n");
76 QList<PersonPtr> dauthors =
authors();
77 QList<PersonPtr>::ConstIterator itp = dauthors.constBegin();
78 QList<PersonPtr>::ConstIterator endp = dauthors.constEnd();
80 for ( ; itp != endp; ++itp)
81 info += (*itp)->debugInfo();
84 QList<CategoryPtr>::ConstIterator itc = dcategories.constBegin();
85 QList<CategoryPtr>::ConstIterator endc = dcategories.constEnd();
87 for ( ; itc != endc; ++itc)
88 info += (*itc)->debugInfo();
90 QList<EnclosurePtr> denclosures =
enclosures();
91 QList<EnclosurePtr>::ConstIterator ite = denclosures.constBegin();
92 QList<EnclosurePtr>::ConstIterator ende = denclosures.constEnd();
94 for ( ; ite != ende; ++ite)
95 info += (*ite)->debugInfo();
98 if (dcommentsCount != -1)
100 info+= QLatin1String(
"commentsCount: #") + QString::number(dcommentsCount) + QLatin1String(
"#\n");
104 if (!dcommentsLink.isNull())
105 info+= QLatin1String(
"commentsLink: #") + dcommentsLink + QLatin1String(
"#\n");
108 if (!dcommentsFeed.isNull())
109 info+= QLatin1String(
"commentsFeed: #") + dcommentsFeed + QLatin1String(
"#\n");
112 if (!dcommentPostUri.isNull())
113 info+= QLatin1String(
"commentPostUri: #") + dcommentPostUri + QLatin1String(
"#\n");
115 info += QLatin1String(
"# Item end ########################\n");
virtual QList< PersonPtr > authors() const =0
returns a list of persons who created the item content.
virtual QString id() const =0
returns an identifier that identifies the item within its feed.
virtual time_t datePublished() const =0
returns the date when the item was initially published.
virtual ~Item()
destructor
virtual QString commentPostUri() const =0
URI that can be used to post comments via an HTTP POST request using the Comment API.
virtual time_t dateUpdated() const =0
returns the date when the item was modified the last time.
virtual QString commentsFeed() const =0
URL of feed syndicating comments belonging to this item.
virtual QString title() const =0
The title of the item.
virtual QString description() const =0
returns the description of the item.
virtual QString content() const =0
returns the content of the item.
virtual QString commentsLink() const =0
Link to an HTML site which contains the comments belonging to this item.
virtual QString language() const =0
returns the language used in the item's content
virtual QList< CategoryPtr > categories() const =0
returns a list of categories this item is filed in.
virtual QString link() const =0
returns a link to the (web) resource described by this item.
virtual QString debugInfo() const
returns a description of the item for debugging purposes
virtual int commentsCount() const =0
The number of comments posted for this item.
virtual QList< EnclosurePtr > enclosures() const =0
returns a list of enclosures describing files available on the net.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.