summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r--examples/maildirresource/maildirresource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp
index 6fd70a0..4648717 100644
--- a/examples/maildirresource/maildirresource.cpp
+++ b/examples/maildirresource/maildirresource.cpp
@@ -338,7 +338,7 @@ KAsync::Job<void> MaildirResource::inspect(int inspectionType, const QByteArray
338 auto synchronizationTransaction = synchronizationStore->createTransaction(Sink::Storage::ReadOnly); 338 auto synchronizationTransaction = synchronizationStore->createTransaction(Sink::Storage::ReadOnly);
339 Trace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue; 339 Trace() << "Inspecting " << inspectionType << domainType << entityId << property << expectedValue;
340 if (domainType == ENTITY_TYPE_MAIL) { 340 if (domainType == ENTITY_TYPE_MAIL) {
341 if (inspectionType == Sink::Resources::Inspection::PropertyInspectionType) { 341 if (inspectionType == Sink::ResourceControl::Inspection::PropertyInspectionType) {
342 if (property == "unread") { 342 if (property == "unread") {
343 const auto remoteId = resolveLocalId(ENTITY_TYPE_MAIL, entityId, synchronizationTransaction); 343 const auto remoteId = resolveLocalId(ENTITY_TYPE_MAIL, entityId, synchronizationTransaction);
344 const auto flags = KPIM::Maildir::readEntryFlags(remoteId.split('/').last()); 344 const auto flags = KPIM::Maildir::readEntryFlags(remoteId.split('/').last());
@@ -363,7 +363,7 @@ KAsync::Job<void> MaildirResource::inspect(int inspectionType, const QByteArray
363 return KAsync::null<void>(); 363 return KAsync::null<void>();
364 } 364 }
365 } 365 }
366 if (inspectionType == Sink::Resources::Inspection::ExistenceInspectionType) { 366 if (inspectionType == Sink::ResourceControl::Inspection::ExistenceInspectionType) {
367 const auto remoteId = resolveLocalId(ENTITY_TYPE_MAIL, entityId, synchronizationTransaction); 367 const auto remoteId = resolveLocalId(ENTITY_TYPE_MAIL, entityId, synchronizationTransaction);
368 if (QFileInfo(remoteId).exists() != expectedValue.toBool()) { 368 if (QFileInfo(remoteId).exists() != expectedValue.toBool()) {
369 return KAsync::error<void>(1, "Wrong file existence: " + remoteId); 369 return KAsync::error<void>(1, "Wrong file existence: " + remoteId);