summaryrefslogtreecommitdiffstats
path: root/common/domain/contact.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-09 16:14:02 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-09 16:14:02 +0100
commit57a88e6c1514b85d25b066059defcd62d2ccd8d6 (patch)
treead41c8e9e4e6b59329e84c2151f24ba5a22eca64 /common/domain/contact.cpp
parent45aaa4a4b2a0718d6e23dd5ac8a5c594d774e949 (diff)
downloadsink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.tar.gz
sink-57a88e6c1514b85d25b066059defcd62d2ccd8d6.zip
Addressbook support
Diffstat (limited to 'common/domain/contact.cpp')
-rw-r--r--common/domain/contact.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/domain/contact.cpp b/common/domain/contact.cpp
index ea7cac2..01f9144 100644
--- a/common/domain/contact.cpp
+++ b/common/domain/contact.cpp
@@ -1,5 +1,6 @@
1/* 1/*
2 * Copyright (C) 2017 Sandro Knauß <knauss@kolabsys.com> 2 * Copyright (C) 2017 Sandro Knauß <knauss@kolabsys.com>
3 * Copyright (C) 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3 * 4 *
4 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
@@ -41,6 +42,7 @@ void TypeImplementation<Contact>::configure(ReadPropertyMapper<Buffer> &property
41 propertyMapper.addMapping<Contact::Fn, Buffer>(&Buffer::fn); 42 propertyMapper.addMapping<Contact::Fn, Buffer>(&Buffer::fn);
42 propertyMapper.addMapping<Contact::Emails, Buffer>(&Buffer::emails); 43 propertyMapper.addMapping<Contact::Emails, Buffer>(&Buffer::emails);
43 propertyMapper.addMapping<Contact::Vcard, Buffer>(&Buffer::vcard); 44 propertyMapper.addMapping<Contact::Vcard, Buffer>(&Buffer::vcard);
45 propertyMapper.addMapping<Contact::Addressbook, Buffer>(&Buffer::addressbook);
44} 46}
45 47
46void TypeImplementation<Contact>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper) 48void TypeImplementation<Contact>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper)
@@ -49,6 +51,7 @@ void TypeImplementation<Contact>::configure(WritePropertyMapper<BufferBuilder> &
49 propertyMapper.addMapping<Contact::Fn>(&BufferBuilder::add_fn); 51 propertyMapper.addMapping<Contact::Fn>(&BufferBuilder::add_fn);
50 propertyMapper.addMapping<Contact::Emails>(&BufferBuilder::add_emails); 52 propertyMapper.addMapping<Contact::Emails>(&BufferBuilder::add_emails);
51 propertyMapper.addMapping<Contact::Vcard>(&BufferBuilder::add_vcard); 53 propertyMapper.addMapping<Contact::Vcard>(&BufferBuilder::add_vcard);
54 propertyMapper.addMapping<Contact::Addressbook>(&BufferBuilder::add_addressbook);
52} 55}
53 56
54void TypeImplementation<Contact>::configure(IndexPropertyMapper &) 57void TypeImplementation<Contact>::configure(IndexPropertyMapper &)