Syndication

documentsource.h
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2005 Frank Osterfeld <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef SYNDICATION_DOCUMENTSOURCE_H
9 #define SYNDICATION_DOCUMENTSOURCE_H
10 
11 #include <QSharedPointer>
12 #include <QString>
13 
14 #include "syndication_export.h"
15 
16 class QByteArray;
17 class QDomDocument;
18 
19 namespace Syndication
20 {
21 
36 class SYNDICATION_EXPORT DocumentSource
37 {
38 public:
39 
45 
52  DocumentSource(const QByteArray &source, const QString &url);
53 
60  DocumentSource(const DocumentSource &other);
61 
65  ~DocumentSource();
66 
74  DocumentSource &operator=(const DocumentSource &other);
75 
81  Q_REQUIRED_RESULT QByteArray asByteArray() const;
82 
89  Q_REQUIRED_RESULT unsigned int size() const;
90 
100  Q_REQUIRED_RESULT unsigned int hash() const;
101 
113  Q_REQUIRED_RESULT QDomDocument asDomDocument() const;
114 
118  Q_REQUIRED_RESULT QString url() const;
119 
120 private:
121 
122  class DocumentSourcePrivate;
124 };
125 
126 } // namespace Syndication
127 
128 #endif // SYNDICATION_DOCUMENTSOURCE_H
Represents the source of a syndication document, as read from the downloaded file.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 18 2020 23:01:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.