diff options
-rw-r--r-- | common/domain/applicationdomaintype.h | 1 | ||||
-rw-r--r-- | common/domain/mail.cpp | 3 | ||||
-rw-r--r-- | tests/mailquerybenchmark.cpp | 4 | ||||
-rw-r--r-- | tests/pipelinebenchmark.cpp | 2 |
4 files changed, 3 insertions, 7 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index d36bffc..c822895 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -370,7 +370,6 @@ struct SINK_EXPORT Mail : public Entity { | |||
370 | }; | 370 | }; |
371 | 371 | ||
372 | SINK_ENTITY(Mail); | 372 | SINK_ENTITY(Mail); |
373 | SINK_PROPERTY(QString, Uid, uid); | ||
374 | SINK_EXTRACTED_PROPERTY(Contact, Sender, sender); | 373 | SINK_EXTRACTED_PROPERTY(Contact, Sender, sender); |
375 | SINK_EXTRACTED_PROPERTY(QList<Contact>, To, to); | 374 | SINK_EXTRACTED_PROPERTY(QList<Contact>, To, to); |
376 | SINK_EXTRACTED_PROPERTY(QList<Contact>, Cc, cc); | 375 | SINK_EXTRACTED_PROPERTY(QList<Contact>, Cc, cc); |
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index 9f120cc..8cbe61b 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp | |||
@@ -36,7 +36,6 @@ 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<Mail::Uid>(); | ||
40 | // index.addProperty<Mail::Sender>(); | 39 | // index.addProperty<Mail::Sender>(); |
41 | /* index.addProperty<QByteArray>(Mail::SenderName::name); */ | 40 | /* index.addProperty<QByteArray>(Mail::SenderName::name); */ |
42 | /* index->addProperty<QString>(Mail::Subject::name); */ | 41 | /* index->addProperty<QString>(Mail::Subject::name); */ |
@@ -66,7 +65,6 @@ void TypeImplementation<Mail>::configure(IndexPropertyMapper &indexPropertyMappe | |||
66 | 65 | ||
67 | void TypeImplementation<Mail>::configure(ReadPropertyMapper<Buffer> &propertyMapper) | 66 | void TypeImplementation<Mail>::configure(ReadPropertyMapper<Buffer> &propertyMapper) |
68 | { | 67 | { |
69 | propertyMapper.addMapping<Mail::Uid, Buffer>(&Buffer::uid); | ||
70 | propertyMapper.addMapping<Mail::Sender, Buffer>(&Buffer::sender); | 68 | propertyMapper.addMapping<Mail::Sender, Buffer>(&Buffer::sender); |
71 | propertyMapper.addMapping<Mail::To, Buffer>(&Buffer::to); | 69 | propertyMapper.addMapping<Mail::To, Buffer>(&Buffer::to); |
72 | propertyMapper.addMapping<Mail::Cc, Buffer>(&Buffer::cc); | 70 | propertyMapper.addMapping<Mail::Cc, Buffer>(&Buffer::cc); |
@@ -87,7 +85,6 @@ void TypeImplementation<Mail>::configure(ReadPropertyMapper<Buffer> &propertyMap | |||
87 | 85 | ||
88 | void TypeImplementation<Mail>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper) | 86 | void TypeImplementation<Mail>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper) |
89 | { | 87 | { |
90 | propertyMapper.addMapping<Mail::Uid>(&BufferBuilder::add_uid); | ||
91 | propertyMapper.addMapping<Mail::Sender>(&BufferBuilder::add_sender); | 88 | propertyMapper.addMapping<Mail::Sender>(&BufferBuilder::add_sender); |
92 | propertyMapper.addMapping<Mail::To>(&BufferBuilder::add_to); | 89 | propertyMapper.addMapping<Mail::To>(&BufferBuilder::add_to); |
93 | propertyMapper.addMapping<Mail::Cc>(&BufferBuilder::add_cc); | 90 | propertyMapper.addMapping<Mail::Cc>(&BufferBuilder::add_cc); |
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp index 080d30e..d68151a 100644 --- a/tests/mailquerybenchmark.cpp +++ b/tests/mailquerybenchmark.cpp | |||
@@ -69,7 +69,7 @@ class MailQueryBenchmark : public QObject | |||
69 | const auto date = QDateTime::currentDateTimeUtc(); | 69 | const auto date = QDateTime::currentDateTimeUtc(); |
70 | for (int i = 0; i < count; i++) { | 70 | for (int i = 0; i < count; i++) { |
71 | auto domainObject = Mail::Ptr::create(); | 71 | auto domainObject = Mail::Ptr::create(); |
72 | domainObject->setUid("uid"); | 72 | domainObject->setExtractedMessageId("uid"); |
73 | domainObject->setExtractedSubject(QString("subject%1").arg(i)); | 73 | domainObject->setExtractedSubject(QString("subject%1").arg(i)); |
74 | domainObject->setExtractedDate(date.addSecs(count)); | 74 | domainObject->setExtractedDate(date.addSecs(count)); |
75 | domainObject->setFolder("folder1"); | 75 | domainObject->setFolder("folder1"); |
@@ -151,7 +151,7 @@ private slots: | |||
151 | void test50k() | 151 | void test50k() |
152 | { | 152 | { |
153 | Sink::Query query; | 153 | Sink::Query query; |
154 | query.request<Mail::Uid>() | 154 | query.request<Mail::MessageId>() |
155 | .request<Mail::Subject>() | 155 | .request<Mail::Subject>() |
156 | .request<Mail::Date>(); | 156 | .request<Mail::Date>(); |
157 | query.sort<Mail::Date>(); | 157 | query.sort<Mail::Date>(); |
diff --git a/tests/pipelinebenchmark.cpp b/tests/pipelinebenchmark.cpp index 7052c4c..126e344 100644 --- a/tests/pipelinebenchmark.cpp +++ b/tests/pipelinebenchmark.cpp | |||
@@ -73,7 +73,7 @@ class PipelineBenchmark : public QObject | |||
73 | const auto date = QDateTime::currentDateTimeUtc(); | 73 | const auto date = QDateTime::currentDateTimeUtc(); |
74 | for (int i = 0; i < count; i++) { | 74 | for (int i = 0; i < count; i++) { |
75 | auto domainObject = Sink::ApplicationDomain::Mail::Ptr::create(); | 75 | auto domainObject = Sink::ApplicationDomain::Mail::Ptr::create(); |
76 | domainObject->setUid("uid"); | 76 | domainObject->setExtractedMessageId("uid"); |
77 | domainObject->setExtractedSubject(QString("subject%1").arg(i)); | 77 | domainObject->setExtractedSubject(QString("subject%1").arg(i)); |
78 | domainObject->setExtractedDate(date.addSecs(count)); | 78 | domainObject->setExtractedDate(date.addSecs(count)); |
79 | domainObject->setFolder("folder1"); | 79 | domainObject->setFolder("folder1"); |