summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-05 23:26:44 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-11-05 23:26:44 +0100
commit5d19ebfb9654b8998d694ff88fa4dcde94b0874c (patch)
tree389c894ea3500a80073dd19f52043c1f319285f4 /common/domain/event.cpp
parent25d08af0851b56db664cee7f6463532d7c103d33 (diff)
downloadsink-5d19ebfb9654b8998d694ff88fa4dcde94b0874c.tar.gz
sink-5d19ebfb9654b8998d694ff88fa4dcde94b0874c.zip
Implemented removeIndex
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp
index 83a6906..87e13bc 100644
--- a/common/domain/event.cpp
+++ b/common/domain/event.cpp
@@ -58,6 +58,14 @@ void TypeImplementation<Event>::index(const QByteArray &identifier, const Buffer
58 } 58 }
59} 59}
60 60
61void TypeImplementation<Event>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction)
62{
63 const auto uid = bufferAdaptor.getProperty("uid");
64 if (uid.isValid()) {
65 Index("event.index.uid", transaction).remove(uid.toByteArray(), identifier);
66 }
67}
68
61QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper() 69QSharedPointer<ReadPropertyMapper<TypeImplementation<Event>::Buffer> > TypeImplementation<Event>::initializeReadPropertyMapper()
62{ 70{
63 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); 71 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create();