11#include <QCoreApplication>
18class SYNDICATION_NO_EXPORT RSSVocab::RSSVocabPrivate
24 PropertyPtr description;
31 PropertyPtr textinput;
33 static RSSVocab *sSelf;
34 static void cleanupRSSVocab()
40RSSVocab *RSSVocab::RSSVocabPrivate::sSelf =
nullptr;
43 : d(new RSSVocabPrivate)
45 QString ns = QStringLiteral(
"http://purl.org/rss/1.0/");
49 d->title = PropertyPtr(
new Property(ns +
QLatin1String(
"title")));
50 d->link = PropertyPtr(
new Property(ns +
QLatin1String(
"link")));
51 d->description = PropertyPtr(
new Property(ns +
QLatin1String(
"description")));
52 d->name = PropertyPtr(
new Property(ns +
QLatin1String(
"name")));
53 d->url = PropertyPtr(
new Property(ns +
QLatin1String(
"url")));
54 d->image = PropertyPtr(
new Property(ns +
QLatin1String(
"image")));
55 d->textinput = PropertyPtr(
new Property(ns +
QLatin1String(
"textinput")));
56 d->items = PropertyPtr(
new Property(ns +
QLatin1String(
"items")));
61RSSVocab::~RSSVocab() =
default;
63RSSVocab *RSSVocab::self()
65 static RSSVocabPrivate p;
67 p.sSelf =
new RSSVocab;
68 qAddPostRoutine(RSSVocabPrivate::cleanupRSSVocab);
73const QString &RSSVocab::namespaceURI()
const
75 return d->namespaceURI;
78PropertyPtr RSSVocab::title()
const
83PropertyPtr RSSVocab::description()
const
85 return d->description;
88PropertyPtr RSSVocab::link()
const
93PropertyPtr RSSVocab::name()
const
98PropertyPtr RSSVocab::url()
const
103PropertyPtr RSSVocab::image()
const
108PropertyPtr RSSVocab::textinput()
const
113PropertyPtr RSSVocab::items()
const
118ResourcePtr RSSVocab::item()
const
123ResourcePtr RSSVocab::channel()
const
128class SYNDICATION_NO_EXPORT RSS09Vocab::RSS09VocabPrivate
134 PropertyPtr description;
140 PropertyPtr textinput;
144 static RSS09Vocab *sSelf;
145 static void cleanupRSS09Vocab()
151RSS09Vocab *RSS09Vocab::RSS09VocabPrivate::sSelf =
nullptr;
153RSS09Vocab::RSS09Vocab()
154 : d(new RSS09VocabPrivate)
156 QString ns = QStringLiteral(
"http://my.netscape.com/rdf/simple/0.9/");
158 d->namespaceURI = ns;
160 d->title = PropertyPtr(
new Property(ns +
QLatin1String(
"title")));
161 d->properties.append(d->title->uri());
162 d->link = PropertyPtr(
new Property(ns +
QLatin1String(
"link")));
163 d->properties.append(d->link->uri());
164 d->description = PropertyPtr(
new Property(ns +
QLatin1String(
"description")));
165 d->properties.append(d->description->uri());
166 d->name = PropertyPtr(
new Property(ns +
QLatin1String(
"name")));
167 d->properties.append(d->name->uri());
168 d->url = PropertyPtr(
new Property(ns +
QLatin1String(
"url")));
169 d->properties.append(d->url->uri());
170 d->image = PropertyPtr(
new Property(ns +
QLatin1String(
"image")));
171 d->properties.append(d->image->uri());
172 d->textinput = PropertyPtr(
new Property(ns +
QLatin1String(
"textinput")));
173 d->properties.append(d->textinput->uri());
175 d->classes.append(d->item->uri());
177 d->classes.append(d->channel->uri());
180RSS09Vocab::~RSS09Vocab() =
default;
182RSS09Vocab *RSS09Vocab::self()
184 if (!RSS09VocabPrivate::sSelf) {
185 RSS09VocabPrivate::sSelf =
new RSS09Vocab;
186 qAddPostRoutine(RSS09VocabPrivate::cleanupRSS09Vocab);
188 return RSS09VocabPrivate::sSelf;
191const QString &RSS09Vocab::namespaceURI()
const
193 return d->namespaceURI;
196PropertyPtr RSS09Vocab::title()
const
201PropertyPtr RSS09Vocab::description()
const
203 return d->description;
206PropertyPtr RSS09Vocab::link()
const
211PropertyPtr RSS09Vocab::name()
const
216PropertyPtr RSS09Vocab::url()
const
221PropertyPtr RSS09Vocab::image()
const
226PropertyPtr RSS09Vocab::textinput()
const
231ResourcePtr RSS09Vocab::item()
const
236ResourcePtr RSS09Vocab::channel()
const
248 return d->properties;
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
QString name(StandardShortcut id)