diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-11 17:57:27 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-13 19:42:39 +0100 |
commit | 335251d0420523ac8b9997c802f6850c427aaf01 (patch) | |
tree | a2d8ce0b941568c071e498683c6f1c2563ce2626 /common/typeindex.h | |
parent | c2f3b5bae5a32d5b3573ed8256bf45231631751a (diff) | |
download | sink-335251d0420523ac8b9997c802f6850c427aaf01.tar.gz sink-335251d0420523ac8b9997c802f6850c427aaf01.zip |
Fixed index removals
Diffstat (limited to 'common/typeindex.h')
-rw-r--r-- | common/typeindex.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/typeindex.h b/common/typeindex.h index 7ff2029..1f216a7 100644 --- a/common/typeindex.h +++ b/common/typeindex.h | |||
@@ -98,6 +98,7 @@ public: | |||
98 | 98 | ||
99 | private: | 99 | private: |
100 | friend class Sink::Storage::EntityStore; | 100 | friend class Sink::Storage::EntityStore; |
101 | void updateIndex(bool add, const QByteArray &identifier, const Sink::ApplicationDomain::ApplicationDomainType &entity, Sink::Storage::DataStore::Transaction &transaction); | ||
101 | QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const; | 102 | QByteArray indexName(const QByteArray &property, const QByteArray &sortProperty = QByteArray()) const; |
102 | Sink::Log::Context mLogCtx; | 103 | Sink::Log::Context mLogCtx; |
103 | QByteArray mType; | 104 | QByteArray mType; |
@@ -107,6 +108,6 @@ private: | |||
107 | QMap<QByteArray, QByteArray> mSecondaryProperties; | 108 | QMap<QByteArray, QByteArray> mSecondaryProperties; |
108 | QList<Sink::Indexer::Ptr> mCustomIndexer; | 109 | QList<Sink::Indexer::Ptr> mCustomIndexer; |
109 | Sink::Storage::DataStore::Transaction *mTransaction; | 110 | Sink::Storage::DataStore::Transaction *mTransaction; |
110 | QHash<QByteArray, std::function<void(const QByteArray &identifier, const QVariant &value, Sink::Storage::DataStore::Transaction &transaction)>> mIndexer; | 111 | QHash<QByteArray, std::function<void(bool, const QByteArray &identifier, const QVariant &value, Sink::Storage::DataStore::Transaction &transaction)>> mIndexer; |
111 | QHash<QByteArray, std::function<void(const QByteArray &identifier, const QVariant &value, const QVariant &sortValue, Sink::Storage::DataStore::Transaction &transaction)>> mSortIndexer; | 112 | QHash<QByteArray, std::function<void(bool, const QByteArray &identifier, const QVariant &value, const QVariant &sortValue, Sink::Storage::DataStore::Transaction &transaction)>> mSortIndexer; |
112 | }; | 113 | }; |