summaryrefslogtreecommitdiffstats
path: root/common/domain/mail.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/mail.cpp
parent25d08af0851b56db664cee7f6463532d7c103d33 (diff)
downloadsink-5d19ebfb9654b8998d694ff88fa4dcde94b0874c.tar.gz
sink-5d19ebfb9654b8998d694ff88fa4dcde94b0874c.zip
Implemented removeIndex
Diffstat (limited to 'common/domain/mail.cpp')
-rw-r--r--common/domain/mail.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp
index ffe322e..5373ac6 100644
--- a/common/domain/mail.cpp
+++ b/common/domain/mail.cpp
@@ -58,6 +58,14 @@ void TypeImplementation<Mail>::index(const QByteArray &identifier, const BufferA
58 } 58 }
59} 59}
60 60
61void TypeImplementation<Mail>::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("mail.index.uid", transaction).remove(uid.toByteArray(), identifier);
66 }
67}
68
61QSharedPointer<ReadPropertyMapper<TypeImplementation<Mail>::Buffer> > TypeImplementation<Mail>::initializeReadPropertyMapper() 69QSharedPointer<ReadPropertyMapper<TypeImplementation<Mail>::Buffer> > TypeImplementation<Mail>::initializeReadPropertyMapper()
62{ 70{
63 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create(); 71 auto propertyMapper = QSharedPointer<ReadPropertyMapper<Buffer> >::create();