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

KNewStuff

  • knewstuff
  • knewstuff2
  • dxs
dxs.h
Go to the documentation of this file.
1 /*
2  This file is part of KNewStuff2.
3  Copyright (c) 2007 Josef Spillner <spillner@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef KNEWSTUFF2_DXS_DXS_H
20 #define KNEWSTUFF2_DXS_DXS_H
21 
22 #include <knewstuff2/core/entry.h>
23 #include <QtCore/QObject>
24 
25 #include <kurl.h>
26 
27 class QDomNode;
28 
29 namespace KNS
30 {
31 
32 class Soap;
33 class Category;
34 class Feed;
35 class Provider;
36 
48 class Dxs : public QObject
49 {
50  Q_OBJECT
51 public:
52  Dxs(QObject* parent, KNS::Provider * provider);
53  ~Dxs();
54  void setEndpoint(KUrl endpoint);
55 
59  void call_info();
60 
64  void call_categories();
65 
71  void call_entries(QString category, QString feed);
72 
77  void call_comments(int id);
78 
83  void call_changes(int id);
84 
89  void call_history(int id);
90 
95  void call_removal(int id);
96 
102  void call_subscription(int id, bool subscribe);
103 
109  void call_comment(int id, QString comment);
110 
116  void call_rating(int id, int rating);
117 
118  Provider *provider();
119 
120 signals:
121  void signalInfo(QString provider, QString server, QString version);
122  void signalCategories(QList<KNS::Category*> categories);
123  void signalEntries(KNS::Entry::List entries, Feed * feed);
124  void signalComments(QStringList comments);
125  void signalChanges(QStringList comments);
126  void signalHistory(QStringList entries);
127  void signalRemoval(bool success);
128  void signalSubscription(bool success);
129  void signalComment(bool success);
130  void signalRating(bool success);
131  void signalFault();
132  void signalError();
133 
134 private slots:
139  void slotResult(QDomNode node, int jobid);
140 
144  void slotError();
145 
146 private:
147  Soap *m_soap;
148  KUrl m_endpoint;
149  Provider *m_provider;
150  QMap<int, Feed*> m_jobfeeds;
151 };
152 
153 }
154 
155 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:02:23 by doxygen 1.8.1.1 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.10.5 API Reference

Skip menu "kdelibs-4.10.5 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