• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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
27class QDomNode;
28
29namespace KNS
30{
31
32class Soap;
33class Category;
34class Feed;
35class Provider;
36
48class Dxs : public QObject
49{
50 Q_OBJECT
51public:
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
120signals:
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
134private slots:
139 void slotResult(QDomNode node, int jobid);
140
144 void slotError();
145
146private:
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
KNewStuff DXS proxy.
Definition: dxs.h:49
KNS::Dxs::signalHistory
void signalHistory(QStringList entries)
KNS::Dxs::signalComment
void signalComment(bool success)
KNS::Dxs::call_rating
void call_rating(int id, int rating)
Definition: dxs.cpp:168
KNS::Dxs::call_entries
void call_entries(QString category, QString feed)
Definition: dxs.cpp:73
KNS::Dxs::provider
Provider * provider()
Definition: dxs.cpp:47
KNS::Dxs::signalRating
void signalRating(bool success)
KNS::Dxs::signalInfo
void signalInfo(QString provider, QString server, QString version)
KNS::Dxs::signalSubscription
void signalSubscription(bool success)
KNS::Dxs::signalRemoval
void signalRemoval(bool success)
KNS::Dxs::call_comments
void call_comments(int id)
Definition: dxs.cpp:92
KNS::Dxs::call_subscription
void call_subscription(int id, bool subscribe)
Definition: dxs.cpp:137
KNS::Dxs::signalError
void signalError()
KNS::Dxs::call_info
void call_info()
Definition: dxs.cpp:57
KNS::Dxs::call_categories
void call_categories()
Definition: dxs.cpp:66
KNS::Dxs::setEndpoint
void setEndpoint(KUrl endpoint)
Definition: dxs.cpp:52
KNS::Dxs::call_changes
void call_changes(int id)
Definition: dxs.cpp:104
KNS::Dxs::signalCategories
void signalCategories(QList< KNS::Category * > categories)
KNS::Dxs::signalFault
void signalFault()
KNS::Dxs::call_comment
void call_comment(int id, QString comment)
Definition: dxs.cpp:152
KNS::Dxs::signalComments
void signalComments(QStringList comments)
KNS::Dxs::call_history
void call_history(int id)
Definition: dxs.cpp:115
KNS::Dxs::signalChanges
void signalChanges(QStringList comments)
KNS::Dxs::signalEntries
void signalEntries(KNS::Entry::List entries, Feed *feed)
KNS::Dxs::~Dxs
~Dxs()
Definition: dxs.cpp:43
KNS::Dxs::call_removal
void call_removal(int id)
Definition: dxs.cpp:126
KNS::Feed
KNewStuff feed.
Definition: feed.h:46
KNS::Provider
KNewStuff provider container.
Definition: knewstuff2/core/provider.h:52
KNS::Soap
KNewStuff transport layer.
Definition: soap.h:51
KUrl
QList
QMap
QObject
entry.h
kurl.h
KNS
Definition: knewstuff2/core/author.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

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