Syndication

dataretriever.h
1 /*
2  SPDX-FileCopyrightText: 2001, 2002, 2003 Frerich Raabe <[email protected]>
3 
4  SPDX-License-Identifier: BSD-2-Clause
5 */
6 
7 #ifndef SYNDICATION_DATARETRIEVER_H
8 #define SYNDICATION_DATARETRIEVER_H
9 
10 #include "syndication_export.h"
11 
12 #include <QObject>
13 
14 class QUrl;
15 
16 class QByteArray;
17 
18 namespace Syndication
19 {
20 
26 class SYNDICATION_EXPORT DataRetriever : public QObject
27 {
28  Q_OBJECT
29 public:
33  DataRetriever();
34 
38  ~DataRetriever() override;
39 
49  virtual void retrieveData(const QUrl &url) = 0;
50 
57  virtual int errorCode() const = 0;
58 
62  virtual void abort() = 0;
63 
64 Q_SIGNALS:
77  void dataRetrieved(const QByteArray &data, bool success);
78 
79 private:
80  DataRetriever(const DataRetriever &other);
81  DataRetriever &operator=(const DataRetriever &other);
82 };
83 
84 } // namespace Syndication
85 
86 #endif // SYNDICATION_DATARETRIEVER_H
Abstract baseclass for all data retriever classes.
Definition: dataretriever.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 23:09:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.