8#include "dublincorevocab.h"
11#include <QCoreApplication>
18class SYNDICATION_NO_EXPORT DublinCoreVocab::DublinCoreVocabPrivate
22 PropertyPtr contributor;
26 PropertyPtr description;
28 PropertyPtr identifier;
30 PropertyPtr publisher;
38 static DublinCoreVocab *sSelf;
39 static void cleanupDublinCoreVocab()
45DublinCoreVocab *DublinCoreVocab::DublinCoreVocabPrivate::sSelf =
nullptr;
47DublinCoreVocab::DublinCoreVocab()
48 : d(new DublinCoreVocabPrivate)
50 QString ns = QStringLiteral(
"http://purl.org/dc/elements/1.1/");
54 d->contributor = PropertyPtr(
new Property(ns +
QLatin1String(
"contributor")));
55 d->coverage = PropertyPtr(
new Property(ns +
QLatin1String(
"coverage")));
56 d->creator = PropertyPtr(
new Property(ns +
QLatin1String(
"creator")));
57 d->date = PropertyPtr(
new Property(ns +
QLatin1String(
"date")));
58 d->description = PropertyPtr(
new Property(ns +
QLatin1String(
"description")));
59 d->format = PropertyPtr(
new Property(ns +
QLatin1String(
"format")));
60 d->identifier = PropertyPtr(
new Property(ns +
QLatin1String(
"identifier")));
61 d->language = PropertyPtr(
new Property(ns +
QLatin1String(
"language")));
62 d->publisher = PropertyPtr(
new Property(ns +
QLatin1String(
"publisher")));
63 d->relation = PropertyPtr(
new Property(ns +
QLatin1String(
"relation")));
64 d->rights = PropertyPtr(
new Property(ns +
QLatin1String(
"rights")));
65 d->source = PropertyPtr(
new Property(ns +
QLatin1String(
"source")));
66 d->subject = PropertyPtr(
new Property(ns +
QLatin1String(
"subject")));
67 d->title = PropertyPtr(
new Property(ns +
QLatin1String(
"title")));
68 d->type = PropertyPtr(
new Property(ns +
QLatin1String(
"type")));
71DublinCoreVocab::~DublinCoreVocab() =
default;
73DublinCoreVocab *DublinCoreVocab::self()
75 static DublinCoreVocabPrivate p;
77 p.sSelf =
new DublinCoreVocab;
78 qAddPostRoutine(DublinCoreVocabPrivate::cleanupDublinCoreVocab);
83const QString &DublinCoreVocab::namespaceURI()
const
85 return d->namespaceURI;
88PropertyPtr DublinCoreVocab::contributor()
const
90 return d->contributor;
93PropertyPtr DublinCoreVocab::creator()
const
98PropertyPtr DublinCoreVocab::coverage()
const
103PropertyPtr DublinCoreVocab::date()
const
108PropertyPtr DublinCoreVocab::description()
const
110 return d->description;
113PropertyPtr DublinCoreVocab::format()
const
118PropertyPtr DublinCoreVocab::identifier()
const
120 return d->identifier;
123PropertyPtr DublinCoreVocab::language()
const
128PropertyPtr DublinCoreVocab::publisher()
const
133PropertyPtr DublinCoreVocab::relation()
const
138PropertyPtr DublinCoreVocab::rights()
const
143PropertyPtr DublinCoreVocab::source()
const
148PropertyPtr DublinCoreVocab::subject()
const
153PropertyPtr DublinCoreVocab::title()
const
158PropertyPtr DublinCoreVocab::type()
const
Type type(const QSqlDatabase &db)