aboutsummaryrefslogtreecommitdiff
path: root/examples/example_5_rpcInterface/remoteinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_5_rpcInterface/remoteinterface.cpp')
-rw-r--r--examples/example_5_rpcInterface/remoteinterface.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/example_5_rpcInterface/remoteinterface.cpp b/examples/example_5_rpcInterface/remoteinterface.cpp
new file mode 100644
index 00000000..77d52384
--- /dev/null
+++ b/examples/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;
+}