diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-10 12:32:03 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-10 12:32:03 +0200 |
commit | ea348c62fdebe1d9c6531fc4491d3316a1e941df (patch) | |
tree | a5984008eacf60154e3454544cb6d68969611fed /common/domainadaptor.cpp | |
parent | 2e13ef36cabbe1c995e77b92c06d6350719bf952 (diff) | |
download | sink-ea348c62fdebe1d9c6531fc4491d3316a1e941df.tar.gz sink-ea348c62fdebe1d9c6531fc4491d3316a1e941df.zip |
checkpoint
Diffstat (limited to 'common/domainadaptor.cpp')
-rw-r--r-- | common/domainadaptor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/domainadaptor.cpp b/common/domainadaptor.cpp index 5b7c427..5e6f062 100644 --- a/common/domainadaptor.cpp +++ b/common/domainadaptor.cpp | |||
@@ -20,16 +20,16 @@ | |||
20 | #include "domainadaptor.h" | 20 | #include "domainadaptor.h" |
21 | 21 | ||
22 | template <> | 22 | template <> |
23 | QSharedPointer<PropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> > initializePropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event>() | 23 | QSharedPointer<ReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> > initializeReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event>() |
24 | { | 24 | { |
25 | auto propertyMapper = QSharedPointer<PropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> >::create(); | 25 | auto propertyMapper = QSharedPointer<ReadPropertyMapper<Akonadi2::ApplicationDomain::Buffer::Event> >::create(); |
26 | propertyMapper->mReadAccessors.insert("summary", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { | 26 | propertyMapper->addMapping("summary", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { |
27 | if (buffer->summary()) { | 27 | if (buffer->summary()) { |
28 | return QString::fromStdString(buffer->summary()->c_str()); | 28 | return QString::fromStdString(buffer->summary()->c_str()); |
29 | } | 29 | } |
30 | return QVariant(); | 30 | return QVariant(); |
31 | }); | 31 | }); |
32 | propertyMapper->mReadAccessors.insert("uid", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { | 32 | propertyMapper->addMapping("uid", [](Akonadi2::ApplicationDomain::Buffer::Event const *buffer) -> QVariant { |
33 | if (buffer->uid()) { | 33 | if (buffer->uid()) { |
34 | return QString::fromStdString(buffer->uid()->c_str()); | 34 | return QString::fromStdString(buffer->uid()->c_str()); |
35 | } | 35 | } |