summaryrefslogtreecommitdiffstats
path: root/common/domain/folder.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-19 15:28:42 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-21 09:18:49 +0200
commitba7c8b890c45d735216888204ec88882ef58c918 (patch)
treecb00c9b51e5353ba3726216679c81c0e2fe9ac35 /common/domain/folder.cpp
parentda1c86b80f230c3a2023f97c0048020a12e38de4 (diff)
downloadsink-ba7c8b890c45d735216888204ec88882ef58c918.tar.gz
sink-ba7c8b890c45d735216888204ec88882ef58c918.zip
Ported the pipeline to the entitystore
Diffstat (limited to 'common/domain/folder.cpp')
-rw-r--r--common/domain/folder.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/common/domain/folder.cpp b/common/domain/folder.cpp
index 94727a3..058035a 100644
--- a/common/domain/folder.cpp
+++ b/common/domain/folder.cpp
@@ -50,28 +50,6 @@ void TypeImplementation<Folder>::configureIndex(TypeIndex &index)
50 index.addProperty<QString>(Folder::Name::name); 50 index.addProperty<QString>(Folder::Name::name);
51} 51}
52 52
53static TypeIndex &getIndex()
54{
55 QMutexLocker locker(&sMutex);
56 static TypeIndex *index = 0;
57 if (!index) {
58 index = new TypeIndex("folder");
59 TypeImplementation<Folder>::configureIndex(*index);
60 }
61 return *index;
62}
63
64void TypeImplementation<Folder>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
65{
66 SinkTrace() << "Indexing " << identifier;
67 getIndex().add(identifier, bufferAdaptor, transaction);
68}
69
70void TypeImplementation<Folder>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
71{
72 getIndex().remove(identifier, bufferAdaptor, transaction);
73}
74
75QSharedPointer<ReadPropertyMapper<TypeImplementation<Folder>::Buffer> > TypeImplementation<Folder>::initializeReadPropertyMapper() 53QSharedPointer<ReadPropertyMapper<TypeImplementation<Folder>::Buffer> > TypeImplementation<Folder>::initializeReadPropertyMapper()
76{ 54{
77 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); 55 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create();