• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

syndication/rdf

  • syndication
  • rdf
syndicationvocab.cpp
1/*
2 * This file is part of the syndication library
3 *
4 * Copyright (C) 2006 Frank Osterfeld <osterfeld@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23#include "syndicationvocab.h"
24#include "property.h"
25
26#include <QtCore/QCoreApplication>
27#include <QtCore/QString>
28
29namespace Syndication {
30namespace RDF {
31
32class SyndicationVocab::SyndicationVocabPrivate
33{
34 public:
35
36 QString namespaceURI;
37 PropertyPtr updatePeriod;
38 PropertyPtr updateFrequency;
39 PropertyPtr updateBase;
40
41 static SyndicationVocab *sSelf;
42 static void cleanupSyndicationVocab()
43 {
44 delete sSelf;
45 sSelf = 0;
46 }
47};
48SyndicationVocab *SyndicationVocab::SyndicationVocabPrivate::sSelf = 0;
49
50SyndicationVocab::SyndicationVocab() : d(new SyndicationVocabPrivate)
51{
52 QString ns = QLatin1String("http://purl.org/rss/1.0/modules/syndication/");
53
54 d->namespaceURI = ns;
55
56 d->updatePeriod = PropertyPtr( new Property(ns + QLatin1String("updatePeriod")) );
57 d->updateFrequency = PropertyPtr( new Property(ns + QLatin1String("updateFrequency")) );
58 d->updateBase = PropertyPtr( new Property(ns + QLatin1String("updateBase")) );
59
60}
61
62SyndicationVocab::~SyndicationVocab()
63{
64 delete d;
65}
66
67SyndicationVocab* SyndicationVocab::self()
68{
69 static SyndicationVocabPrivate p;
70 if(!p.sSelf) {
71 p.sSelf = new SyndicationVocab;
72 qAddPostRoutine(SyndicationVocabPrivate::cleanupSyndicationVocab);
73 }
74 return p.sSelf;
75}
76
77const QString& SyndicationVocab::namespaceURI() const
78{
79 return d->namespaceURI;
80}
81
82PropertyPtr SyndicationVocab::updatePeriod() const
83{
84 return d->updatePeriod;
85}
86
87PropertyPtr SyndicationVocab::updateFrequency() const
88{
89 return d->updateFrequency;
90}
91
92PropertyPtr SyndicationVocab::updateBase() const
93{
94 return d->updateBase;
95}
96
97} // namespace RDF
98} // namespace Syndication
Syndication::RDF::SyndicationVocab
Singleton providing Property constants for the Syndication module.
Definition: syndicationvocab.h:52
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/rdf

Skip menu "syndication/rdf"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal