diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-09 14:06:17 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-13 19:42:38 +0100 |
commit | 516d38bd7bca5562ebb7b21b96a5dd62152ee52e (patch) | |
tree | 813e31b56bbda54c6010b9e97638c7fa60d3cc6f /common/domain/mail.cpp | |
parent | c0862b91e69c82a33df50b1a6913741bbecbc950 (diff) | |
download | sink-516d38bd7bca5562ebb7b21b96a5dd62152ee52e.tar.gz sink-516d38bd7bca5562ebb7b21b96a5dd62152ee52e.zip |
Cleaner index syntax, don't index messageid twice
Diffstat (limited to 'common/domain/mail.cpp')
-rw-r--r-- | common/domain/mail.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index f9a20d7..9f120cc 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp | |||
@@ -36,17 +36,15 @@ using namespace Sink::ApplicationDomain; | |||
36 | 36 | ||
37 | void TypeImplementation<Mail>::configure(TypeIndex &index) | 37 | void TypeImplementation<Mail>::configure(TypeIndex &index) |
38 | { | 38 | { |
39 | index.addProperty<QByteArray>(Mail::Uid::name); | 39 | index.addProperty<Mail::Uid>(); |
40 | index.addProperty<QByteArray>(Mail::Sender::name); | 40 | // index.addProperty<Mail::Sender>(); |
41 | /* index.addProperty<QByteArray>(Mail::SenderName::name); */ | 41 | /* index.addProperty<QByteArray>(Mail::SenderName::name); */ |
42 | /* index->addProperty<QString>(Mail::Subject::name); */ | 42 | /* index->addProperty<QString>(Mail::Subject::name); */ |
43 | /* index->addFulltextProperty<QString>(Mail::Subject::name); */ | 43 | /* index->addFulltextProperty<QString>(Mail::Subject::name); */ |
44 | index.addProperty<QDateTime>(Mail::Date::name); | 44 | index.addProperty<Mail::Date>(); |
45 | index.addProperty<QByteArray>(Mail::Folder::name); | 45 | index.addProperty<Mail::Folder>(); |
46 | index.addPropertyWithSorting<QByteArray, QDateTime>(Mail::Folder::name, Mail::Date::name); | 46 | index.addPropertyWithSorting<Mail::Folder, Mail::Date>(); |
47 | index.addProperty<QByteArray>(Mail::MessageId::name); | 47 | index.addProperty<Mail::ParentMessageId>(); |
48 | index.addProperty<QByteArray>(Mail::ParentMessageId::name); | ||
49 | |||
50 | index.addProperty<Mail::MessageId>(); | 48 | index.addProperty<Mail::MessageId>(); |
51 | 49 | ||
52 | index.addSecondaryPropertyIndexer<Mail::MessageId, Mail::ThreadId, ThreadIndexer>(); | 50 | index.addSecondaryPropertyIndexer<Mail::MessageId, Mail::ThreadId, ThreadIndexer>(); |