summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp
index d50652d..41ec625 100644
--- a/common/domain/event.cpp
+++ b/common/domain/event.cpp
@@ -47,27 +47,6 @@ void TypeImplementation<Event>::configureIndex(TypeIndex &index)
47 index.addProperty<QByteArray>(Event::Uid::name); 47 index.addProperty<QByteArray>(Event::Uid::name);
48} 48}
49 49
50static TypeIndex &getIndex()
51{
52 QMutexLocker locker(&sMutex);
53 static TypeIndex *index = 0;
54 if (!index) {
55 index = new TypeIndex("event");
56 TypeImplementation<Event>::configureIndex(*index);
57 }
58 return *index;
59}
60
61void TypeImplementation<Event>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
62{
63 return getIndex().add(identifier, bufferAdaptor, transaction);
64}
65
66void TypeImplementation<Event>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::DataStore::Transaction &transaction)
67{
68 return getIndex().remove(identifier, bufferAdaptor, transaction);
69}
70
71QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper() 50QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper()
72{ 51{
73 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); 52 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create();