Syndication

contentvocab.h
1/*
2 This file is part of the syndication library
3 SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef SYNDICATION_RDF_CONTENTVOCAB_H
9#define SYNDICATION_RDF_CONTENTVOCAB_H
10
11#include <QSharedPointer>
12
13#include "../syndication_export.h"
14
15#include <memory>
16
17class QString;
18
19namespace Syndication
20{
21namespace RDF
22{
23class Property;
24//@cond PRIVATE
25typedef QSharedPointer<Property> PropertyPtr;
26//@endcond
27/**
28 * Singleton holding RDF class and property constants of the RSS 1.0 content
29 * module. See http://web.resource.org/rss/1.0/modules/content/ for a
30 * specification.
31 *
32 * @author Frank Osterfeld
33 */
34class ContentVocab
35{
36public:
37 /**
38 * returns the singleton instance
39 */
40 static ContentVocab *self();
41
42 /**
43 * destructor
44 */
45 ~ContentVocab();
46
47 /**
48 * Namespace of the Content module
49 *
50 * http://purl.org/rss/1.0/modules/content/
51 **/
52 const QString &namespaceURI() const;
53
54 /**
55 * content:encoded property
56 */
57 PropertyPtr encoded() const;
58
59private:
60 ContentVocab();
61 Q_DISABLE_COPY(ContentVocab)
62
63 class ContentVocabPrivate;
64 std::unique_ptr<ContentVocabPrivate> const d;
65};
66
67} // namespace RDF
68} // namespace Syndication
69
70#endif // SYNDICATION_RDF_CONTENTVOCAB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:15 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.