KNewStuff

xmlloader.h
1 /*
2  knewstuff3/xmlloader.h.
3  SPDX-FileCopyrightText: 2002 Cornelius Schumacher <[email protected]>
4  SPDX-FileCopyrightText: 2003-2007 Josef Spillner <[email protected]>
5  SPDX-FileCopyrightText: 2009 Jeremy Whiting <[email protected]>
6  SPDX-FileCopyrightText: 2010 Frederik Gladhorn <[email protected]>
7 
8  SPDX-License-Identifier: LGPL-2.1-or-later
9 */
10 
11 #ifndef KNEWSTUFF3_XMLLOADER_P_H
12 #define KNEWSTUFF3_XMLLOADER_P_H
13 
14 #include <qdom.h>
15 #include <QObject>
16 #include <QString>
17 #include <QUrl>
18 
19 #include "knewstuffcore_export.h"
20 
21 class KJob;
22 
23 namespace KNSCore
24 {
25 
26 QDomElement addElement(QDomDocument &doc, QDomElement &parent,
27  const QString &tag, const QString &value);
28 
37 class KNEWSTUFFCORE_EXPORT XmlLoader : public QObject
38 {
39  Q_OBJECT
40 public:
44  explicit XmlLoader(QObject *parent);
45 
52  void load(const QUrl &url);
53 
54 Q_SIGNALS:
58  void signalLoaded(const QDomDocument &);
59  void signalFailed();
60 
61  void jobStarted(KJob *);
62 
63 protected Q_SLOTS:
64  void slotJobData(KJob *, const QByteArray &);
65  void slotJobResult(KJob *);
66 
67 private:
68  QByteArray m_jobdata;
69 };
70 
71 }
72 
73 #endif
KNewStuff xml loader.
Definition: xmlloader.h:37
Contains the core functionality for handling interaction with NewStuff providers. ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.