Syndication
8 #include "documentsource.h"
13 #include <QDomDocument>
17 class SYNDICATION_NO_EXPORT DocumentSource::DocumentSourcePrivate
24 mutable unsigned int hash;
25 mutable bool calculatedHash;
28 DocumentSource::DocumentSource()
29 : d(new DocumentSourcePrivate)
32 d->calculatedHash =
true;
37 : d(new DocumentSourcePrivate)
41 d->calculatedHash =
false;
45 DocumentSource::DocumentSource(
const DocumentSource &other)
51 DocumentSource::~DocumentSource()
55 DocumentSource &DocumentSource::operator=(
const DocumentSource &other)
72 if (!d->domDoc.setContent(d->array,
true, &errorMsg, &errorLine, &errorColumn)) {
73 qWarning() << errorMsg <<
"on line" << errorLine;
83 unsigned int DocumentSource::size()
const
85 return d->array.size();
88 unsigned int DocumentSource::hash()
const
90 if (!d->calculatedHash) {
91 d->hash = calcHash(d->array);
92 d->calculatedHash =
true;
98 QString DocumentSource::url()
const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:11 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.