diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-19 11:47:03 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-19 11:47:03 +0100 |
commit | 9aa1cf3fb9bb380f6f069fc539b037bfd3d07030 (patch) | |
tree | 6c206f8af96b2c9ce5becca6f0712a8d3fafdc95 /examples/maildirresource/maildirresource.cpp | |
parent | 9e539844bb62fd8bcc4a8e423205ea4a15a1c15e (diff) | |
download | sink-9aa1cf3fb9bb380f6f069fc539b037bfd3d07030.tar.gz sink-9aa1cf3fb9bb380f6f069fc539b037bfd3d07030.zip |
ExisteneceInspection
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 5d540be..9280bdc 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -312,6 +312,12 @@ KAsync::Job<void> MaildirResource::inspect(int inspectionType, const QByteArray | |||
312 | return KAsync::null<void>(); | 312 | return KAsync::null<void>(); |
313 | } | 313 | } |
314 | } | 314 | } |
315 | if (inspectionType == Akonadi2::Resources::Inspection::ExistenceInspectionType) { | ||
316 | const auto remoteId = resolveLocalId(ENTITY_TYPE_MAIL, entityId, synchronizationTransaction); | ||
317 | if (QFileInfo(remoteId).exists() != expectedValue.toBool()) { | ||
318 | return KAsync::error<void>(1, "Wrong file existence: " + remoteId); | ||
319 | } | ||
320 | } | ||
315 | } | 321 | } |
316 | return KAsync::null<void>(); | 322 | return KAsync::null<void>(); |
317 | } | 323 | } |