aboutsummaryrefslogtreecommitdiff
path: root/examples/example_5_rpcInterface/remoteinterface.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 16:22:18 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 16:22:18 +0000
commit70c376063aa3a30db16facd8c103b2c6ef3b3e36 (patch)
tree5b28dd41176dba2d11eb45c3a6ed84fb7f263498 /examples/example_5_rpcInterface/remoteinterface.cpp
parent1b16399a98d3f659d349e3e13e12d91dab954a22 (diff)
rename "example" to "examples"
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;
+}