diff options
Diffstat (limited to 'common/entitystorage.h')
-rw-r--r-- | common/entitystorage.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/entitystorage.h b/common/entitystorage.h index 516a889..2fce880 100644 --- a/common/entitystorage.h +++ b/common/entitystorage.h | |||
@@ -18,15 +18,16 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "clientapi.h" | ||
22 | |||
23 | #include <QByteArray> | 21 | #include <QByteArray> |
24 | 22 | ||
23 | #include "query.h" | ||
25 | #include "domainadaptor.h" | 24 | #include "domainadaptor.h" |
26 | #include "entitybuffer.h" | 25 | #include "entitybuffer.h" |
27 | #include "log.h" | 26 | #include "log.h" |
28 | #include "storage.h" | 27 | #include "storage.h" |
29 | #include "resultset.h" | 28 | #include "resultset.h" |
29 | #include "resultprovider.h" | ||
30 | #include "definitions.h" | ||
30 | 31 | ||
31 | /** | 32 | /** |
32 | * Wraps storage, entity adaptor factory and indexes into one. | 33 | * Wraps storage, entity adaptor factory and indexes into one. |
@@ -85,7 +86,7 @@ public: | |||
85 | 86 | ||
86 | virtual void read(const Akonadi2::Query &query, const QPair<qint64, qint64> &revisionRange, const QSharedPointer<Akonadi2::ResultProvider<typename DomainType::Ptr> > &resultProvider) | 87 | virtual void read(const Akonadi2::Query &query, const QPair<qint64, qint64> &revisionRange, const QSharedPointer<Akonadi2::ResultProvider<typename DomainType::Ptr> > &resultProvider) |
87 | { | 88 | { |
88 | Akonadi2::Storage storage(Akonadi2::Store::storageLocation(), mResourceInstanceIdentifier); | 89 | Akonadi2::Storage storage(Akonadi2::storageLocation(), mResourceInstanceIdentifier); |
89 | storage.setDefaultErrorHandler([](const Akonadi2::Storage::Error &error) { | 90 | storage.setDefaultErrorHandler([](const Akonadi2::Storage::Error &error) { |
90 | Warning() << "Error during query: " << error.store << error.message; | 91 | Warning() << "Error during query: " << error.store << error.message; |
91 | }); | 92 | }); |