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

syndication/atom

  • sources
  • kde-4.14
  • kdepimlibs
  • syndication
  • atom
document.h
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 #ifndef SYNDICATION_ATOM_DOCUMENT_H
24 #define SYNDICATION_ATOM_DOCUMENT_H
25 
26 #include <syndication/specificdocument.h>
27 #include <syndication/elementwrapper.h>
28 
29 #include <ctime>
30 
31 template <class T> class QList;
32 
33 namespace Syndication {
34 
35 class DocumentVisitor;
36 
37 namespace Atom {
38 
39 class Category;
40 class Entry;
41 class EntryDocument;
42 class FeedDocument;
43 class Generator;
44 class Link;
45 class Person;
46 //@cond PRIVATE
47 typedef boost::shared_ptr<EntryDocument> EntryDocumentPtr;
48 typedef boost::shared_ptr<FeedDocument> FeedDocumentPtr;
49 //@endcond
50 
57 class SYNDICATION_EXPORT FeedDocument : public Syndication::SpecificDocument, public ElementWrapper
58 {
59  public:
60 
66  FeedDocument();
67 
74  explicit FeedDocument(const QDomElement& element);
75 
81  bool accept(DocumentVisitor* visitor);
82 
88  QList<Person> authors() const;
89 
93  QList<Person> contributors() const;
94 
98  QList<Category> categories() const;
99 
105  QString icon() const;
106 
112  QString logo() const;
113 
121  QString id() const;
122 
129  QString rights() const;
130 
136  QString title() const;
137 
144  QString subtitle() const;
145 
153  Generator generator() const;
154 
160  time_t updated() const;
161 
166  QList<Link> links() const;
167 
171  QList<Entry> entries() const;
172 
173 
178  QList<QDomElement> unhandledElements() const;
179 
186  QString debugInfo() const;
187 
193  bool isValid() const;
194 };
195 
202 class SYNDICATION_EXPORT EntryDocument : public Syndication::SpecificDocument, public Syndication::ElementWrapper
203 {
204  public:
205 
210  EntryDocument();
211 
218  explicit EntryDocument(const QDomElement& element);
219 
225  bool accept(DocumentVisitor* visitor);
226 
232  Entry entry() const;
233 
240  QString debugInfo() const;
241 
247  bool isValid() const;
248 };
249 
250 } // namespace Atom
251 } // namespace Syndication
252 
253 #endif // SYNDICATION_ATOM_DOCUMENT_H
Syndication::Atom::Generator
Description of the agent used to generate the feed.
Definition: generator.h:39
Syndication::Atom::FeedDocument
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries...
Definition: document.h:57
QString
QList
Definition: document.h:31
Syndication::Atom::Entry
an Atom entry, equivalent to the "items" in the RSS world.
Definition: entry.h:53
Syndication::Atom::EntryDocument
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed...
Definition: document.h:202
QDomElement
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/atom

Skip menu "syndication/atom"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • 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