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

syndication/rdf

  • sources
  • kde-4.14
  • kdepimlibs
  • 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 
29 namespace Syndication {
30 namespace RDF {
31 
32 class 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 };
48 SyndicationVocab *SyndicationVocab::SyndicationVocabPrivate::sSelf = 0;
49 
50 SyndicationVocab::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 
62 SyndicationVocab::~SyndicationVocab()
63 {
64  delete d;
65 }
66 
67 SyndicationVocab* 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 
77 const QString& SyndicationVocab::namespaceURI() const
78 {
79  return d->namespaceURI;
80 }
81 
82 PropertyPtr SyndicationVocab::updatePeriod() const
83 {
84  return d->updatePeriod;
85 }
86 
87 PropertyPtr SyndicationVocab::updateFrequency() const
88 {
89  return d->updateFrequency;
90 }
91 
92 PropertyPtr SyndicationVocab::updateBase() const
93 {
94  return d->updateBase;
95 }
96 
97 } // namespace RDF
98 } // namespace Syndication
Syndication::RDF::SyndicationVocab::updateBase
PropertyPtr updateBase() const
updateBase property, see Syndication::updateBase() for more information.
Definition: syndicationvocab.cpp:92
Syndication::RDF::SyndicationVocab::~SyndicationVocab
~SyndicationVocab()
destructor
Definition: syndicationvocab.cpp:62
Syndication::RDF::SyndicationVocab::updatePeriod
PropertyPtr updatePeriod() const
updatePeriod property, see Syndication::updatePeriod() for more information.
Definition: syndicationvocab.cpp:82
Syndication::RDF::SyndicationVocab::updateFrequency
PropertyPtr updateFrequency() const
updateFrequency property, see Syndication::updateFrequency() for more information.
Definition: syndicationvocab.cpp:87
Syndication::RDF::SyndicationVocab::namespaceURI
const QString & namespaceURI() const
namespace URI of the syndication vocabulary, "http://purl.org/rss/1.0/modules/syndication/" ...
Definition: syndicationvocab.cpp:77
QString
Syndication::RDF::SyndicationVocab
Singleton providing Property constants for the Syndication module.
Definition: syndicationvocab.h:51
QLatin1String
Syndication::RDF::SyndicationVocab::self
static SyndicationVocab * self()
returns the singleton instance
Definition: syndicationvocab.cpp:67
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:38 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs 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

Search



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