23 #include "dublincorevocab.h"
26 #include <QtCore/QCoreApplication>
27 #include <QtCore/QString>
29 namespace Syndication {
32 class DublinCoreVocab::DublinCoreVocabPrivate
53 static DublinCoreVocab *sSelf;
54 static void cleanupDublinCoreVocab()
60 DublinCoreVocab *DublinCoreVocab::DublinCoreVocabPrivate::sSelf = 0;
62 DublinCoreVocab::DublinCoreVocab() : d(new DublinCoreVocabPrivate)
64 QString ns = QLatin1String(
"http://purl.org/dc/elements/1.1/");
68 d->contributor = PropertyPtr(
new Property(ns + QLatin1String(
"contributor")) );
69 d->coverage = PropertyPtr(
new Property(ns + QLatin1String(
"coverage")) );
70 d->creator = PropertyPtr(
new Property(ns + QLatin1String(
"creator")) );
71 d->date = PropertyPtr(
new Property(ns + QLatin1String(
"date")) );
72 d->description = PropertyPtr(
new Property(ns + QLatin1String(
"description")) );
73 d->format = PropertyPtr(
new Property(ns + QLatin1String(
"format")) );
74 d->identifier = PropertyPtr(
new Property(ns + QLatin1String(
"identifier")) );
75 d->language = PropertyPtr(
new Property(ns + QLatin1String(
"language")) );
76 d->publisher = PropertyPtr(
new Property(ns + QLatin1String(
"publisher")) );
77 d->relation = PropertyPtr(
new Property(ns + QLatin1String(
"relation")) );
78 d->rights = PropertyPtr(
new Property(ns + QLatin1String(
"rights")) );
79 d->source = PropertyPtr(
new Property(ns + QLatin1String(
"source")) );
80 d->subject = PropertyPtr(
new Property(ns + QLatin1String(
"subject")) );
81 d->title = PropertyPtr(
new Property(ns + QLatin1String(
"title")) );
82 d->type = PropertyPtr(
new Property(ns + QLatin1String(
"type")) );
93 static DublinCoreVocabPrivate p;
96 qAddPostRoutine(DublinCoreVocabPrivate::cleanupDublinCoreVocab);
103 return d->namespaceURI;
108 return d->contributor;
128 return d->description;
138 return d->identifier;