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

KNewStuff

dxs.h

Go to the documentation of this file.
00001 /*
00002     This file is part of KNewStuff2.
00003     Copyright (c) 2007 Josef Spillner <spillner@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 #ifndef KNEWSTUFF2_DXS_DXS_H
00020 #define KNEWSTUFF2_DXS_DXS_H
00021 
00022 #include <knewstuff2/core/entry.h>
00023 #include <QtCore/QObject>
00024 
00025 #include <kurl.h>
00026 
00027 class QDomNode;
00028 
00029 namespace KNS
00030 {
00031 
00032 class Soap;
00033 class Category;
00034 class Feed;
00035 class Provider;
00036 
00048 class Dxs : public QObject
00049 {
00050     Q_OBJECT
00051 public:
00052     Dxs(QObject* parent, KNS::Provider * provider);
00053     ~Dxs();
00054     void setEndpoint(KUrl endpoint);
00055 
00059     void call_info();
00060 
00064     void call_categories();
00065 
00071     void call_entries(QString category, QString feed);
00072 
00077     void call_comments(int id);
00078 
00083     void call_changes(int id);
00084 
00089     void call_history(int id);
00090 
00095     void call_removal(int id);
00096 
00102     void call_subscription(int id, bool subscribe);
00103 
00109     void call_comment(int id, QString comment);
00110 
00116     void call_rating(int id, int rating);
00117 
00118     Provider *provider();
00119 
00120 signals:
00121     void signalInfo(QString provider, QString server, QString version);
00122     void signalCategories(QList<KNS::Category*> categories);
00123     void signalEntries(KNS::Entry::List entries, Feed * feed);
00124     void signalComments(QStringList comments);
00125     void signalChanges(QStringList comments);
00126     void signalHistory(QStringList entries);
00127     void signalRemoval(bool success);
00128     void signalSubscription(bool success);
00129     void signalComment(bool success);
00130     void signalRating(bool success);
00131     void signalFault();
00132     void signalError();
00133 
00134 private slots:
00139     void slotResult(QDomNode node, int jobid);
00140 
00144     void slotError();
00145 
00146 private:
00147     Soap *m_soap;
00148     KUrl m_endpoint;
00149     Provider *m_provider;
00150     QMap<int, Feed*> m_jobfeeds;
00151 };
00152 
00153 }
00154 
00155 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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