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

KNewStuff

xmlloader.h

Go to the documentation of this file.
00001 /*
00002     knewstuff3/xmlloader.h.
00003     Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
00004     Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org>
00005     Copyright (c) 2009 Jeremy Whiting <jpwhiting@kde.org>
00006     Copyright (C) 2010 Frederik Gladhorn <gladhorn@kde.org>
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Lesser General Public
00010     License as published by the Free Software Foundation; either
00011     version 2.1 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public
00019     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 #ifndef KNEWSTUFF3_XML_LOADER_H
00022 #define KNEWSTUFF3_XML_LOADER_H
00023 
00024 #include <QtXml/qdom.h>
00025 #include <QtCore/QObject>
00026 #include <QtCore/QString>
00027 
00028 #include <kurl.h>
00029 
00030 class KJob;
00031 
00032 namespace KIO
00033 {
00034     class Job;
00035 }
00036 
00037 namespace KNS3
00038 {
00039 
00040 QDomElement addElement(QDomDocument& doc, QDomElement& parent,
00041                                  const QString& tag, const QString& value);
00042 
00051 class XmlLoader : public QObject
00052 {
00053     Q_OBJECT
00054 public:
00058     XmlLoader(QObject* parent);
00059 
00066     void load(const KUrl & url);
00067 
00068 Q_SIGNALS:
00072     void signalLoaded(const QDomDocument&);
00073     void signalFailed();
00074     
00075     void jobStarted(KJob*);
00076 
00077 protected Q_SLOTS:
00078     void slotJobData(KIO::Job *, const QByteArray &);
00079     void slotJobResult(KJob *);
00080 
00081 private:
00082     QByteArray m_jobdata;
00083 };
00084 
00085 }
00086 
00087 #endif

KNewStuff

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal