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

KNewStuff

  • sources
  • kde-4.12
  • kdelibs
  • 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 
30 class KJob;
31 
32 namespace KIO
33 {
34  class Job;
35 }
36 
37 namespace KNS3
38 {
39 
40 QDomElement addElement(QDomDocument& doc, QDomElement& parent,
41  const QString& tag, const QString& value);
42 
51 class XmlLoader : public QObject
52 {
53  Q_OBJECT
54 public:
58  XmlLoader(QObject* parent);
59 
66  void load(const KUrl & url);
67 
68 Q_SIGNALS:
72  void signalLoaded(const QDomDocument&);
73  void signalFailed();
74 
75  void jobStarted(KJob*);
76 
77 protected Q_SLOTS:
78  void slotJobData(KIO::Job *, const QByteArray &);
79  void slotJobResult(KJob *);
80 
81 private:
82  QByteArray m_jobdata;
83 };
84 
85 }
86 
87 #endif
KNS3::XmlLoader::signalLoaded
void signalLoaded(const QDomDocument &)
Indicates that the list of providers has been successfully loaded.
KNS3::XmlLoader
KNewStuff xml loader.
Definition: xmlloader.h:51
kurl.h
KNS3::XmlLoader::load
void load(const KUrl &url)
Starts asynchronously loading the xml document from the specified URL.
Definition: xmlloader.cpp:39
QString
QObject
KNS3::XmlLoader::slotJobResult
void slotJobResult(KJob *)
Definition: xmlloader.cpp:61
KUrl
KNS3::addElement
QDomElement addElement(QDomDocument &doc, QDomElement &parent, const QString &tag, const QString &value)
Definition: xmlloader.cpp:80
KIO::Job
KNS3::XmlLoader::signalFailed
void signalFailed()
KNS3::XmlLoader::jobStarted
void jobStarted(KJob *)
KNS3::XmlLoader::slotJobData
void slotJobData(KIO::Job *, const QByteArray &)
Definition: xmlloader.cpp:54
KJob
KNS3::XmlLoader::XmlLoader
XmlLoader(QObject *parent)
Constructor.
Definition: xmlloader.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:49 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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