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

Syndication Library

  • 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
21class KUrl;
22
23namespace Syndication {
24
25class DataRetriever;
26class Feed;
27//@cond PRIVATE
28typedef boost::shared_ptr<Feed> FeedPtr;
29//@endcond
30
75class 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
Syndication::DataRetriever
Abstract baseclass for all data retriever classes.
Definition: dataretriever.h:37
Syndication::Loader
This class is the preferred way of loading feed sources.
Definition: loader.h:76
Syndication::Loader::loadingComplete
void loadingComplete(Syndication::Loader *loader, Syndication::FeedPtr feed, Syndication::ErrorCode error)
This signal gets emitted when the loading process triggered by calling loadFrom() finished.
Syndication
TODO.
Definition: abstractparser.cpp:25
Syndication::ErrorCode
ErrorCode
error code indicating fetching or parsing errors
Definition: global.h:86
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 Library

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

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