summaryrefslogtreecommitdiffstats
path: root/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-18 14:29:08 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-01-18 14:29:08 +0100
commitd417f01e2eebeedfaae76b40667372bd0fb21fea (patch)
treeab0749c576e0c3fe4ff621c50cbdc038beab2185 /dummyresource/resourcefactory.cpp
parent47b4442c585a25b2e4b857f2d9e3ab371d942c19 (diff)
downloadsink-d417f01e2eebeedfaae76b40667372bd0fb21fea.tar.gz
sink-d417f01e2eebeedfaae76b40667372bd0fb21fea.zip
Use jobs in queries, sync works again.
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r--dummyresource/resourcefactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp
index f74eb72..dc716ef 100644
--- a/dummyresource/resourcefactory.cpp
+++ b/dummyresource/resourcefactory.cpp
@@ -317,7 +317,9 @@ Async::Job<void> DummyResource::synchronizeWithSource(Akonadi2::Pipeline *pipeli
317 builder.add_attachment(attachment); 317 builder.add_attachment(attachment);
318 auto buffer = builder.Finish(); 318 auto buffer = builder.Finish();
319 DummyCalendar::FinishDummyEventBuffer(m_fbb, buffer); 319 DummyCalendar::FinishDummyEventBuffer(m_fbb, buffer);
320 enqueueCommand(mSynchronizerQueue, Akonadi2::Commands::CreateEntityCommand, QByteArray::fromRawData(reinterpret_cast<char const *>(m_fbb.GetBufferPointer()), m_fbb.GetSize())); 320 flatbuffers::FlatBufferBuilder entityFbb;
321 Akonadi2::EntityBuffer::assembleEntityBuffer(entityFbb, 0, 0, m_fbb.GetBufferPointer(), m_fbb.GetSize(), 0, 0);
322 enqueueCommand(mSynchronizerQueue, Akonadi2::Commands::CreateEntityCommand, QByteArray::fromRawData(reinterpret_cast<char const *>(entityFbb.GetBufferPointer()), entityFbb.GetSize()));
321 } else { //modification 323 } else { //modification
322 //TODO diff and create modification if necessary 324 //TODO diff and create modification if necessary
323 } 325 }