summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dummyresource/resourcefactory.cpp')
-rw-r--r--examples/dummyresource/resourcefactory.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp
index 275371d..cfce6e4 100644
--- a/examples/dummyresource/resourcefactory.cpp
+++ b/examples/dummyresource/resourcefactory.cpp
@@ -54,12 +54,10 @@ class DummySynchronizer : public Sink::Synchronizer {
54 54
55 Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap<QString, QVariant> &data) 55 Sink::ApplicationDomain::Event::Ptr createEvent(const QByteArray &ridBuffer, const QMap<QString, QVariant> &data)
56 { 56 {
57 static uint8_t rawData[100];
58 auto event = Sink::ApplicationDomain::Event::Ptr::create(); 57 auto event = Sink::ApplicationDomain::Event::Ptr::create();
59 event->setSummary(data.value("summary").toString()); 58 event->setSummary(data.value("summary").toString());
60 event->setProperty("remoteId", ridBuffer); 59 event->setProperty("remoteId", ridBuffer);
61 event->setDescription(data.value("description").toString()); 60 event->setDescription(data.value("description").toString());
62 event->setAttachment(QByteArray::fromRawData(reinterpret_cast<const char*>(rawData), 100));
63 return event; 61 return event;
64 } 62 }
65 63