aboutsummaryrefslogtreecommitdiff
path: root/examples/example_6_rpcClient/rpcClient.h
blob: b4d4c393db685623f965728e953b27fc56f7d3ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-FileCopyrightText: 2010 Ian Reinhart Geiser <geiseri@kde.org>
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#ifndef RPCCLIENT_H
#define RPCCLIENT_H

#include "QXmppClient.h"

class QXmppRpcManager;

class rpcClient : public QXmppClient
{
    Q_OBJECT

public:
    rpcClient(QObject *parent = nullptr);
    ~rpcClient() override;

private:
    Q_SLOT void slotInvokeRemoteMethod();
    Q_SLOT void slotPresenceReceived(const QXmppPresence &presence);

    QString m_remoteJid;
    QXmppRpcManager *m_rpcManager;
};

#endif  // RPCCLIENT_H