QXmpp Version: 1.12.0
Loading...
Searching...
No Matches
QXmppRemoteMethod.h
1// SPDX-FileCopyrightText: 2009 Ian Reinhart Geiser <geiseri@kde.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPREMOTEMETHOD_H
6#define QXMPPREMOTEMETHOD_H
7
8#include "QXmppRpcIq.h"
9
10#include <QObject>
11#include <QVariant>
12
13class QXmppClient;
14
15#if QXMPP_DEPRECATED_SINCE(1, 12)
16QT_WARNING_PUSH
17QT_WARNING_DISABLE_DEPRECATED
18
20struct [[deprecated("Removed from public API (unmaintained)")]] QXmppRemoteMethodResult {
21 QXmppRemoteMethodResult() : hasError(false), code(0) { }
22 bool hasError;
23 int code;
24 QString errorMessage;
25 QVariant result;
26};
27
28class QXMPP_EXPORT Q_DECL_DEPRECATED_X("Removed from public API (unmaintained)") QXmppRemoteMethod : public QObject
29{
30 Q_OBJECT
31public:
32 QXmppRemoteMethod(const QString &jid, const QString &method, const QVariantList &args, QXmppClient *client);
33 QXmppRemoteMethodResult call();
34
35private Q_SLOTS:
36 void gotError(const QXmppRpcErrorIq &iq);
37 void gotResult(const QXmppRpcResponseIq &iq);
38
39Q_SIGNALS:
40 void callDone();
41
42private:
43 QXmppRpcInvokeIq m_payload;
44 QXmppClient *m_client;
45 QXmppRemoteMethodResult m_result;
46};
48
49QT_WARNING_POP
50#endif
51
52#endif // QXMPPREMOTEMETHOD_H
Main class for starting and managing connections to XMPP servers.
Definition QXmppClient.h:62
The QXmppRpcInvokeIq class represents an IQ used to carry an RPC invocation as specified by XEP-0009:...
Definition QXmppRpcIq.h:61
The QXmppRpcResponseIq class represents an IQ used to carry an RPC response as specified by XEP-0009:...
Definition QXmppRpcIq.h:26