diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-27 10:50:41 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-27 10:50:41 +0100 |
commit | 9fe1d50d7ace50f1f7efc66412dff006f20a2062 (patch) | |
tree | f0f11edfe9e4542e5cce229bc156306556d8fbf7 /examples/imapresource/imapresource.cpp | |
parent | df99cc0a8fc96e6584d71a6fe03cad2b321118cb (diff) | |
download | sink-9fe1d50d7ace50f1f7efc66412dff006f20a2062.tar.gz sink-9fe1d50d7ace50f1f7efc66412dff006f20a2062.zip |
Cleanup
Diffstat (limited to 'examples/imapresource/imapresource.cpp')
-rw-r--r-- | examples/imapresource/imapresource.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 8fc7702..2aa5a2c 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp | |||
@@ -20,7 +20,6 @@ | |||
20 | #include "imapresource.h" | 20 | #include "imapresource.h" |
21 | 21 | ||
22 | #include "facade.h" | 22 | #include "facade.h" |
23 | #include "pipeline.h" | ||
24 | #include "resourceconfig.h" | 23 | #include "resourceconfig.h" |
25 | #include "commands.h" | 24 | #include "commands.h" |
26 | #include "index.h" | 25 | #include "index.h" |
@@ -554,8 +553,8 @@ public: | |||
554 | QByteArray mResourceInstanceIdentifier; | 553 | QByteArray mResourceInstanceIdentifier; |
555 | }; | 554 | }; |
556 | 555 | ||
557 | ImapResource::ImapResource(const ResourceContext &resourceContext, const QSharedPointer<Sink::Pipeline> &pipeline) | 556 | ImapResource::ImapResource(const ResourceContext &resourceContext) |
558 | : Sink::GenericResource(resourceContext, pipeline) | 557 | : Sink::GenericResource(resourceContext) |
559 | { | 558 | { |
560 | auto config = ResourceConfig::getConfiguration(resourceContext.instanceId()); | 559 | auto config = ResourceConfig::getConfiguration(resourceContext.instanceId()); |
561 | mServer = config.value("server").toString(); | 560 | mServer = config.value("server").toString(); |
@@ -583,12 +582,6 @@ ImapResource::ImapResource(const ResourceContext &resourceContext, const QShared | |||
583 | setupPreprocessors(ENTITY_TYPE_FOLDER, QVector<Sink::Preprocessor*>()); | 582 | setupPreprocessors(ENTITY_TYPE_FOLDER, QVector<Sink::Preprocessor*>()); |
584 | } | 583 | } |
585 | 584 | ||
586 | void ImapResource::removeFromDisk(const QByteArray &instanceIdentifier) | ||
587 | { | ||
588 | GenericResource::removeFromDisk(instanceIdentifier); | ||
589 | Sink::Storage::DataStore(Sink::storageLocation(), instanceIdentifier + ".synchronization", Sink::Storage::DataStore::ReadWrite).removeFromDisk(); | ||
590 | } | ||
591 | |||
592 | KAsync::Job<void> ImapResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) | 585 | KAsync::Job<void> ImapResource::inspect(int inspectionType, const QByteArray &inspectionId, const QByteArray &domainType, const QByteArray &entityId, const QByteArray &property, const QVariant &expectedValue) |
593 | { | 586 | { |
594 | auto synchronizationStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId() + ".synchronization", Sink::Storage::DataStore::ReadOnly); | 587 | auto synchronizationStore = QSharedPointer<Sink::Storage::DataStore>::create(Sink::storageLocation(), mResourceContext.instanceId() + ".synchronization", Sink::Storage::DataStore::ReadOnly); |