aboutsummaryrefslogtreecommitdiff
path: root/examples/example_5_rpcInterface/remoteinterface.h
blob: 9c63d3f8d3ae2974a76979193b1211a00eca4929 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef REMOTEINTERFACE_H
#define REMOTEINTERFACE_H

#include "QXmppRpcManager.h"

class RemoteInterface : public QXmppInvokable
{
    Q_OBJECT
public:
    RemoteInterface(QObject *parent = nullptr);

    bool isAuthorized( const QString &jid ) const override;

// RPC Interface
public slots:
    QString echoString( const QString &message );

};

#endif // REMOTEINTERFACE_H