KNewStuff
Go to the documentation of this file.
24 #include <QtCore/QByteArray>
53 KIO::TransferJob *job = KIO::get(stuffurl, KIO::NoReload, KIO::HideProgressInfo);
54 connect(job, SIGNAL(result(
KJob*)),
56 connect(job, SIGNAL(data(
KIO::Job*,QByteArray)),
58 connect(job, SIGNAL(percent(
KJob*,ulong)),
76 m_jobdata.append(data);
93 if (!doc.setContent(m_jobdata)) {
98 QDomElement entries = doc.documentElement();
100 if (entries.isNull()) {
101 kWarning() <<
"No document in stuff.xml.";
105 for (n = entries.firstChild(); !n.isNull(); n = n.nextSibling()) {
106 QDomElement e = n.toElement();
108 if (e.tagName() ==
"stuff") {
111 m_entries.append(entry);
120 #include "entryloader.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:21:18 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.