aboutsummaryrefslogtreecommitdiff
path: root/examples/sending_arguments/messagereceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sending_arguments/messagereceiver.cpp')
-rw-r--r--examples/sending_arguments/messagereceiver.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/sending_arguments/messagereceiver.cpp b/examples/sending_arguments/messagereceiver.cpp
new file mode 100644
index 0000000..0560b07
--- /dev/null
+++ b/examples/sending_arguments/messagereceiver.cpp
@@ -0,0 +1,12 @@
+#include <QDebug>
+#include "messagereceiver.h"
+
+MessageReceiver::MessageReceiver(QObject *parent) : QObject(parent)
+{
+}
+
+void MessageReceiver::receivedMessage(int instanceId, QByteArray message)
+{
+ qDebug() << "Received message from instance: " << instanceId;
+ qDebug() << "Message Text: " << message;
+}