diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-20 19:07:07 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-20 19:07:07 +0100 |
commit | bdb01c2c068df326f5a8328ed1492ab1bea388c5 (patch) | |
tree | 25c2ee1b29bc481b6914c244ed9ca194b1415d16 /common/index.cpp | |
parent | 17e7ee40c9185c0505883853345fd6024c675b1a (diff) | |
download | sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.tar.gz sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.zip |
Renamed Akonadi2 to Sink
(except for documentation).
Diffstat (limited to 'common/index.cpp')
-rw-r--r-- | common/index.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/index.cpp b/common/index.cpp index f4de93c..25dfb7c 100644 --- a/common/index.cpp +++ b/common/index.cpp | |||
@@ -1,15 +1,15 @@ | |||
1 | #include "index.h" | 1 | #include "index.h" |
2 | #include <QDebug> | 2 | #include <QDebug> |
3 | 3 | ||
4 | Index::Index(const QString &storageRoot, const QString &name, Akonadi2::Storage::AccessMode mode) | 4 | Index::Index(const QString &storageRoot, const QString &name, Sink::Storage::AccessMode mode) |
5 | : mTransaction(Akonadi2::Storage(storageRoot, name, mode).createTransaction(mode)), | 5 | : mTransaction(Sink::Storage(storageRoot, name, mode).createTransaction(mode)), |
6 | mDb(mTransaction.openDatabase(name.toLatin1(), std::function<void(const Akonadi2::Storage::Error &)>(), true)) | 6 | mDb(mTransaction.openDatabase(name.toLatin1(), std::function<void(const Sink::Storage::Error &)>(), true)) |
7 | { | 7 | { |
8 | 8 | ||
9 | } | 9 | } |
10 | 10 | ||
11 | Index::Index(const QByteArray &name, Akonadi2::Storage::Transaction &transaction) | 11 | Index::Index(const QByteArray &name, Sink::Storage::Transaction &transaction) |
12 | : mDb(transaction.openDatabase(name, std::function<void(const Akonadi2::Storage::Error &)>(), true)) | 12 | : mDb(transaction.openDatabase(name, std::function<void(const Sink::Storage::Error &)>(), true)) |
13 | { | 13 | { |
14 | 14 | ||
15 | } | 15 | } |
@@ -31,7 +31,7 @@ void Index::lookup(const QByteArray &key, const std::function<void(const QByteAr | |||
31 | resultHandler(value); | 31 | resultHandler(value); |
32 | return true; | 32 | return true; |
33 | }, | 33 | }, |
34 | [errorHandler](const Akonadi2::Storage::Error &error) { | 34 | [errorHandler](const Sink::Storage::Error &error) { |
35 | qDebug() << "Error while retrieving value" << error.message; | 35 | qDebug() << "Error while retrieving value" << error.message; |
36 | errorHandler(Error(error.store, error.code, error.message)); | 36 | errorHandler(Error(error.store, error.code, error.message)); |
37 | } | 37 | } |