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.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 example/example_5_rpcInterface/remoteinterface.cpp (limited to 'example/example_5_rpcInterface/remoteinterface.cpp') diff --git a/example/example_5_rpcInterface/remoteinterface.cpp b/example/example_5_rpcInterface/remoteinterface.cpp new file mode 100644 index 00000000..77d52384 --- /dev/null +++ b/example/example_5_rpcInterface/remoteinterface.cpp @@ -0,0 +1,15 @@ +#include "remoteinterface.h" + +RemoteInterface::RemoteInterface(QObject *parent) : QXmppInvokable(parent) +{ +} + +bool RemoteInterface::isAuthorized( const QString &jid ) const +{ + return true; +} + +QString RemoteInterface::echoString(const QString& message) +{ + return "Echo: " + message; +} -- cgit v1.2.3