From 5b0870ddaac421af2639058648a218c7061cdd6f Mon Sep 17 00:00:00 2001 From: Ian Geiser Date: Sun, 8 Nov 2009 22:02:28 +0000 Subject: Added start of XEP-009. This is only the inteface, being able to invoke remote methods is next. --- example/example_5_rpcInterface/remoteinterface.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 example/example_5_rpcInterface/remoteinterface.h (limited to 'example/example_5_rpcInterface/remoteinterface.h') diff --git a/example/example_5_rpcInterface/remoteinterface.h b/example/example_5_rpcInterface/remoteinterface.h new file mode 100644 index 00000000..02ce72d7 --- /dev/null +++ b/example/example_5_rpcInterface/remoteinterface.h @@ -0,0 +1,20 @@ +#ifndef REMOTEINTERFACE_H +#define REMOTEINTERFACE_H + +#include "QXmppInvokable.h" + +class RemoteInterface : public QXmppInvokable +{ + Q_OBJECT +public: + RemoteInterface(QObject *parent = 0); + + bool isAuthorized( const QString &jid ) const; + +// RPC Interface +public slots: + QString echoString( const QString &message ); + +}; + +#endif // REMOTEINTERFACE_H -- cgit v1.2.3