summaryrefslogtreecommitdiffstats
path: root/common/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r--common/pipeline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp
index e2f23ed..ea82720 100644
--- a/common/pipeline.cpp
+++ b/common/pipeline.cpp
@@ -94,7 +94,7 @@ void Pipeline::null()
94 // state.step(); 94 // state.step();
95} 95}
96 96
97Async::Job<void> Pipeline::newEntity(void const *command, size_t size) 97KAsync::Job<void> Pipeline::newEntity(void const *command, size_t size)
98{ 98{
99 Log() << "Pipeline: New Entity"; 99 Log() << "Pipeline: New Entity";
100 100
@@ -107,7 +107,7 @@ Async::Job<void> Pipeline::newEntity(void const *command, size_t size)
107 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(command), size); 107 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(command), size);
108 if (!Akonadi2::Commands::VerifyCreateEntityBuffer(verifyer)) { 108 if (!Akonadi2::Commands::VerifyCreateEntityBuffer(verifyer)) {
109 qWarning() << "invalid buffer, not a create entity buffer"; 109 qWarning() << "invalid buffer, not a create entity buffer";
110 return Async::error<void>(); 110 return KAsync::error<void>();
111 } 111 }
112 } 112 }
113 auto createEntity = Akonadi2::Commands::GetCreateEntity(command); 113 auto createEntity = Akonadi2::Commands::GetCreateEntity(command);
@@ -118,7 +118,7 @@ Async::Job<void> Pipeline::newEntity(void const *command, size_t size)
118 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(createEntity->delta()->Data()), createEntity->delta()->size()); 118 flatbuffers::Verifier verifyer(reinterpret_cast<const uint8_t *>(createEntity->delta()->Data()), createEntity->delta()->size());
119 if (!Akonadi2::VerifyEntityBuffer(verifyer)) { 119 if (!Akonadi2::VerifyEntityBuffer(verifyer)) {
120 qWarning() << "invalid buffer, not an entity buffer"; 120 qWarning() << "invalid buffer, not an entity buffer";
121 return Async::error<void>(); 121 return KAsync::error<void>();
122 } 122 }
123 } 123 }
124 auto entity = Akonadi2::GetEntity(createEntity->delta()->Data()); 124 auto entity = Akonadi2::GetEntity(createEntity->delta()->Data());
@@ -139,7 +139,7 @@ Async::Job<void> Pipeline::newEntity(void const *command, size_t size)
139 storage().setMaxRevision(newRevision); 139 storage().setMaxRevision(newRevision);
140 Log() << "Pipeline: wrote entity: "<< newRevision; 140 Log() << "Pipeline: wrote entity: "<< newRevision;
141 141
142 return Async::start<void>([this, key, entityType](Async::Future<void> &future) { 142 return KAsync::start<void>([this, key, entityType](KAsync::Future<void> &future) {
143 PipelineState state(this, NewPipeline, key, d->newPipeline[entityType], [&future]() { 143 PipelineState state(this, NewPipeline, key, d->newPipeline[entityType], [&future]() {
144 future.setFinished(); 144 future.setFinished();
145 }); 145 });