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

Syndication Library

  • sources
  • kde-4.14
  • kdepimlibs
  • syndication
loader.h
1 /*
2  * loader.h
3  *
4  * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
5  *
6  * This program is distributed in the hope that it will be useful, but WITHOUT
7  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8  * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
9  * accompanying file 'COPYING'.
10  */
11 #ifndef SYNDICATION_LOADER_H
12 #define SYNDICATION_LOADER_H
13 
14 #include <syndication/global.h>
15 #include <boost/shared_ptr.hpp>
16 
17 #include "ksyndication_export.h"
18 
19 #include <QtCore/QObject>
20 
21 class KUrl;
22 
23 namespace Syndication {
24 
25 class DataRetriever;
26 class Feed;
27 //@cond PRIVATE
28 typedef boost::shared_ptr<Feed> FeedPtr;
29 //@endcond
30 
75 class SYNDICATION_EXPORT Loader : public QObject
76 {
77  Q_OBJECT
78 
79 
80  public:
81 
90  static Loader* create();
91 
99  static Loader* create(QObject* object, const char* slot);
100 
116  void loadFrom(const KUrl& url, DataRetriever* retriever);
117 
124  void loadFrom(const KUrl& url);
125 
129  ErrorCode errorCode() const;
130 
136  int retrieverError() const;
137 
141  KUrl discoveredFeedURL() const;
142 
146  void abort();
147 
148  Q_SIGNALS:
149 
150 
163  void loadingComplete(Syndication::Loader* loader,
164  Syndication::FeedPtr feed,
165  Syndication::ErrorCode error);
166 
167  private Q_SLOTS:
168 
169  void slotRetrieverDone(const QByteArray& data, bool success);
170 
171  private:
172 
173  Loader();
174  Loader(const Loader& other);
175  Loader& operator=(const Loader& other);
176  ~Loader();
177  void discoverFeeds(const QByteArray& data);
178 
179  struct LoaderPrivate;
180  LoaderPrivate* const d;
181 };
182 
183 
184 } // namespace Syndication
185 
186 #endif // SYNDICATION_LOADER_H
QByteArray
Syndication::Loader
This class is the preferred way of loading feed sources.
Definition: loader.h:75
Syndication::ErrorCode
ErrorCode
error code indicating fetching or parsing errors
Definition: global.h:85
QObject
Syndication::DataRetriever
Abstract baseclass for all data retriever classes.
Definition: dataretriever.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Syndication Library

Skip menu "Syndication Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

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