summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-10 08:51:25 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-10 08:55:40 +0100
commit660ee77c9875ad71d4189e8643f679f574687528 (patch)
treefefb5374c8f99242dfbe1abd37de4e93ccb1dfb3 /examples/maildirresource/maildirresource.cpp
parent4ee8a44bf4dda625b4d2f58f127869557c1af959 (diff)
downloadsink-660ee77c9875ad71d4189e8643f679f574687528.tar.gz
sink-660ee77c9875ad71d4189e8643f679f574687528.zip
Renamed Resources to ResourceControl
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);