• 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
  • 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
KNS::Dxs::signalHistory
void signalHistory(QStringList entries)
KNS::Dxs::call_comments
void call_comments(int id)
Definition: dxs.cpp:92
KNS::Dxs::call_rating
void call_rating(int id, int rating)
Change the rating.
Definition: dxs.cpp:168
KNS::Dxs::call_entries
void call_entries(QString category, QString feed)
Definition: dxs.cpp:73
KNS::Dxs::call_changes
void call_changes(int id)
Definition: dxs.cpp:104
KNS::Dxs::call_comment
void call_comment(int id, QString comment)
Definition: dxs.cpp:152
kurl.h
entry.h
KNS::Dxs
KNewStuff DXS proxy.
Definition: dxs.h:48
KNS::Dxs::signalCategories
void signalCategories(QList< KNS::Category * > categories)
KNS::Dxs::signalComments
void signalComments(QStringList comments)
KNS::Dxs::signalError
void signalError()
QString
QObject
KNS::Dxs::provider
Provider * provider()
Definition: dxs.cpp:47
KUrl
KNS::Dxs::call_info
void call_info()
Definition: dxs.cpp:57
KNS::Dxs::signalComment
void signalComment(bool success)
KNS::Dxs::signalRating
void signalRating(bool success)
KNS::Dxs::~Dxs
~Dxs()
Definition: dxs.cpp:43
QStringList
KNS::Dxs::call_subscription
void call_subscription(int id, bool subscribe)
Definition: dxs.cpp:137
KNS::Dxs::signalInfo
void signalInfo(QString provider, QString server, QString version)
KNS::Dxs::call_categories
void call_categories()
Definition: dxs.cpp:66
KNS::Dxs::call_history
void call_history(int id)
Definition: dxs.cpp:115
KNS::Dxs::call_removal
void call_removal(int id)
Definition: dxs.cpp:126
KNS::Dxs::Dxs
Dxs(QObject *parent, KNS::Provider *provider)
Definition: dxs.cpp:35
KNS::Soap
KNewStuff transport layer.
Definition: soap.h:50
KNS::Dxs::signalFault
void signalFault()
version
unsigned int version()
KNS::Dxs::signalRemoval
void signalRemoval(bool success)
KNS::Dxs::signalChanges
void signalChanges(QStringList comments)
KNS::Dxs::signalSubscription
void signalSubscription(bool success)
KNS::Dxs::setEndpoint
void setEndpoint(KUrl endpoint)
Definition: dxs.cpp:52
KNS::Feed
KNewStuff feed.
Definition: feed.h:45
KNS::Dxs::signalEntries
void signalEntries(KNS::Entry::List entries, Feed *feed)
KNS::Provider
KNewStuff provider container.
Definition: knewstuff2/core/provider.h:51
QMap
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:48 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