Syndication

contentvocab.h
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
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 class QString;
16 
17 namespace Syndication
18 {
19 namespace RDF
20 {
21 class Property;
22 //@cond PRIVATE
23 typedef QSharedPointer<Property> PropertyPtr;
24 //@endcond
25 /**
26  * Singleton holding RDF class and property constants of the RSS 1.0 content
27  * module. See http://web.resource.org/rss/1.0/modules/content/ for a
28  * specification.
29  *
30  * @author Frank Osterfeld
31  */
32 class SYNDICATION_EXPORT ContentVocab
33 {
34 public:
35  /**
36  * returns the singleton instance
37  */
38  static ContentVocab *self();
39 
40  /**
41  * destructor
42  */
43  ~ContentVocab();
44 
45  /**
46  * Namespace of the Content module
47  *
48  * http://purl.org/rss/1.0/modules/content/
49  **/
50  const QString &namespaceURI() const;
51 
52  /**
53  * content:encoded property
54  */
55  PropertyPtr encoded() const;
56 
57 private:
58  ContentVocab();
59  Q_DISABLE_COPY(ContentVocab)
60 
61  class ContentVocabPrivate;
62  ContentVocabPrivate *const d;
63 };
64 
65 } // namespace RDF
66 } // namespace Syndication
67 
68 #endif // SYNDICATION_RDF_CONTENTVOCAB_H
Property
Singleton holding RDF class and property constants of the RSS 1.0 content module.
Definition: contentvocab.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:05:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.