• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KXMLRPC Client Library

  • kxmlrpcclient
query.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2003 - 2004 by Frerich Raabe <raabe@kde.org> *
3 * Tobias Koenig <tokoe@kde.org> *
4 * Copyright (C) 2006 by Narayan Newton <narayannewton@gmail.com> *
5 * *
6 * This program is distributed in the hope that it will be useful, but *
7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
8 * or FITNESS FOR A PARTICULAR PURPOSE. For licensing and distribution *
9 * details, check the accompanying file 'COPYING.BSD'. *
10 *****************************************************************************/
21#ifndef KXML_RPC_QUERY_H
22#define KXML_RPC_QUERY_H
23
24#include "kxmlrpcclient_export.h"
25
26#include <QtCore/QList>
27#include <QtCore/QObject>
28#include <QtCore/QVariant>
29#include <QtCore/QMap>
30#include <kio/job.h>
31
32class QString;
33
35namespace KXmlRpc {
36
44class KXMLRPCCLIENT_EXPORT Query : public QObject
45{
46 friend class Result;
47 Q_OBJECT
48
49 public:
56 static Query *create( const QVariant &id = QVariant(), QObject *parent = 0 );
57
58 public Q_SLOTS:
68 void call( const QString &server, const QString &method,
69 const QList<QVariant> &args,
70 const QMap<QString, QString> &jobMetaData );
71
72 Q_SIGNALS:
76 void message( const QList<QVariant> &result, const QVariant &id );
77
81 void fault( int, const QString &, const QVariant &id );
82
86 void finished( Query * );
87
88 private:
89 explicit Query( const QVariant &id, QObject *parent = 0 );
90 ~Query();
91
92 class Private;
93 Private *const d;
94
95 Q_PRIVATE_SLOT( d, void slotData( KIO::Job *, const QByteArray & ) )
96 Q_PRIVATE_SLOT( d, void slotResult( KJob * ) )
97};
98
99} // namespace XmlRpc
100
101#endif
102
KXmlRpc::Query
Query is a class that represents an individual XML-RPC call.
Definition: query.h:45
KXmlRpc::Query::finished
void finished(Query *)
A signal sent when a query finishes.
KXmlRpc::Query::message
void message(const QList< QVariant > &result, const QVariant &id)
A signal sent when we receive a result from the server.
KXmlRpc::Query::fault
void fault(int, const QString &, const QVariant &id)
A signal sent when we receive an error from the server.
KXmlRpc
Names for XmlRpc related classes.
Definition: client.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KXMLRPC Client Library

Skip menu "KXMLRPC Client Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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