• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KNewStuff

  • knewstuff
  • knewstuff3
  • core
xmlloader.h
Go to the documentation of this file.
1/*
2 knewstuff3/xmlloader.h.
3 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4 Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org>
5 Copyright (c) 2009 Jeremy Whiting <jpwhiting@kde.org>
6 Copyright (C) 2010 Frederik Gladhorn <gladhorn@kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library. If not, see <http://www.gnu.org/licenses/>.
20*/
21#ifndef KNEWSTUFF3_XML_LOADER_H
22#define KNEWSTUFF3_XML_LOADER_H
23
24#include <QtXml/qdom.h>
25#include <QtCore/QObject>
26#include <QtCore/QString>
27
28#include <kurl.h>
29
30class KJob;
31
32namespace KIO
33{
34 class Job;
35}
36
37namespace KNS3
38{
39
40QDomElement addElement(QDomDocument& doc, QDomElement& parent,
41 const QString& tag, const QString& value);
42
51class XmlLoader : public QObject
52{
53 Q_OBJECT
54public:
58 XmlLoader(QObject* parent);
59
66 void load(const KUrl & url);
67
68Q_SIGNALS:
72 void signalLoaded(const QDomDocument&);
73 void signalFailed();
74
75 void jobStarted(KJob*);
76
77protected Q_SLOTS:
78 void slotJobData(KIO::Job *, const QByteArray &);
79 void slotJobResult(KJob *);
80
81private:
82 QByteArray m_jobdata;
83};
84
85}
86
87#endif
KIO::Job
KJob
KNS3::XmlLoader
KNewStuff xml loader.
Definition: xmlloader.h:52
KNS3::XmlLoader::jobStarted
void jobStarted(KJob *)
KNS3::XmlLoader::load
void load(const KUrl &url)
Starts asynchronously loading the xml document from the specified URL.
Definition: xmlloader.cpp:39
KNS3::XmlLoader::signalLoaded
void signalLoaded(const QDomDocument &)
Indicates that the list of providers has been successfully loaded.
KNS3::XmlLoader::signalFailed
void signalFailed()
KNS3::XmlLoader::slotJobData
void slotJobData(KIO::Job *, const QByteArray &)
Definition: xmlloader.cpp:54
KNS3::XmlLoader::slotJobResult
void slotJobResult(KJob *)
Definition: xmlloader.cpp:61
KUrl
QObject
kurl.h
KIO
KNS3
Definition: atticaprovider.cpp:36
KNS3::addElement
QDomElement addElement(QDomDocument &doc, QDomElement &parent, const QString &tag, const QString &value)
Definition: xmlloader.cpp:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal