summaryrefslogtreecommitdiffstats
path: root/common/typeindex.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-20 19:07:07 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-01-20 19:07:07 +0100
commitbdb01c2c068df326f5a8328ed1492ab1bea388c5 (patch)
tree25c2ee1b29bc481b6914c244ed9ca194b1415d16 /common/typeindex.cpp
parent17e7ee40c9185c0505883853345fd6024c675b1a (diff)
downloadsink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.tar.gz
sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.zip
Renamed Akonadi2 to Sink
(except for documentation).
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r--common/typeindex.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp
index 19e0507..03ad8f7 100644
--- a/common/typeindex.cpp
+++ b/common/typeindex.cpp
@@ -31,7 +31,7 @@ TypeIndex::TypeIndex(const QByteArray &type)
31template<> 31template<>
32void TypeIndex::addProperty<QByteArray>(const QByteArray &property) 32void TypeIndex::addProperty<QByteArray>(const QByteArray &property)
33{ 33{
34 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Akonadi2::Storage::Transaction &transaction) { 34 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Sink::Storage::Transaction &transaction) {
35 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray(); 35 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray();
36 if (value.isValid()) { 36 if (value.isValid()) {
37 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier); 37 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier);
@@ -46,7 +46,7 @@ void TypeIndex::addProperty<QByteArray>(const QByteArray &property)
46template<> 46template<>
47void TypeIndex::addProperty<QString>(const QByteArray &property) 47void TypeIndex::addProperty<QString>(const QByteArray &property)
48{ 48{
49 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Akonadi2::Storage::Transaction &transaction) { 49 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Sink::Storage::Transaction &transaction) {
50 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray(); 50 // Trace() << "Indexing " << mType + ".index." + property << value.toByteArray();
51 if (value.isValid()) { 51 if (value.isValid()) {
52 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier); 52 Index(mType + ".index." + property, transaction).add(value.toByteArray(), identifier);
@@ -61,7 +61,7 @@ void TypeIndex::addProperty<QString>(const QByteArray &property)
61template<> 61template<>
62void TypeIndex::addProperty<QDateTime>(const QByteArray &property) 62void TypeIndex::addProperty<QDateTime>(const QByteArray &property)
63{ 63{
64 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Akonadi2::Storage::Transaction &transaction) { 64 auto indexer = [this, property](const QByteArray &identifier, const QVariant &value, Sink::Storage::Transaction &transaction) {
65 const auto date = value.toDateTime(); 65 const auto date = value.toDateTime();
66 // Trace() << "Indexing " << mType + ".index." + property << date.toString(); 66 // Trace() << "Indexing " << mType + ".index." + property << date.toString();
67 if (date.isValid()) { 67 if (date.isValid()) {
@@ -72,7 +72,7 @@ void TypeIndex::addProperty<QDateTime>(const QByteArray &property)
72 mProperties << property; 72 mProperties << property;
73} 73}
74 74
75void TypeIndex::add(const QByteArray &identifier, const Akonadi2::ApplicationDomain::BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) 75void TypeIndex::add(const QByteArray &identifier, const Sink::ApplicationDomain::BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction)
76{ 76{
77 for (const auto &property : mProperties) { 77 for (const auto &property : mProperties) {
78 const auto value = bufferAdaptor.getProperty(property); 78 const auto value = bufferAdaptor.getProperty(property);
@@ -81,7 +81,7 @@ void TypeIndex::add(const QByteArray &identifier, const Akonadi2::ApplicationDom
81 } 81 }
82} 82}
83 83
84void TypeIndex::remove(const QByteArray &identifier, const Akonadi2::ApplicationDomain::BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) 84void TypeIndex::remove(const QByteArray &identifier, const Sink::ApplicationDomain::BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction)
85{ 85{
86 for (const auto &property : mProperties) { 86 for (const auto &property : mProperties) {
87 const auto value = bufferAdaptor.getProperty(property); 87 const auto value = bufferAdaptor.getProperty(property);
@@ -94,7 +94,7 @@ void TypeIndex::remove(const QByteArray &identifier, const Akonadi2::Application
94 } 94 }
95} 95}
96 96
97ResultSet TypeIndex::query(const Akonadi2::Query &query, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction) 97ResultSet TypeIndex::query(const Sink::Query &query, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction)
98{ 98{
99 QVector<QByteArray> keys; 99 QVector<QByteArray> keys;
100 for (const auto &property : mProperties) { 100 for (const auto &property : mProperties) {