diff options
Diffstat (limited to 'common/domain/contact.cpp')
-rw-r--r-- | common/domain/contact.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/common/domain/contact.cpp b/common/domain/contact.cpp deleted file mode 100644 index 01f9144..0000000 --- a/common/domain/contact.cpp +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 Sandro Knauß <knauss@kolabsys.com> | ||
3 | * Copyright (C) 2017 Christian Mollekopf <mollekopf@kolabsys.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the | ||
17 | * Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
19 | */ | ||
20 | #include "contact.h" | ||
21 | |||
22 | #include <QVector> | ||
23 | #include <QByteArray> | ||
24 | #include <QString> | ||
25 | |||
26 | #include "../propertymapper.h" | ||
27 | #include "../typeindex.h" | ||
28 | #include "entity_generated.h" | ||
29 | |||
30 | #include "contact_generated.h" | ||
31 | |||
32 | using namespace Sink::ApplicationDomain; | ||
33 | |||
34 | void TypeImplementation<Contact>::configure(TypeIndex &index) | ||
35 | { | ||
36 | index.addProperty<QByteArray>(Contact::Uid::name); | ||
37 | } | ||
38 | |||
39 | void TypeImplementation<Contact>::configure(ReadPropertyMapper<Buffer> &propertyMapper) | ||
40 | { | ||
41 | propertyMapper.addMapping<Contact::Uid, Buffer>(&Buffer::uid); | ||
42 | propertyMapper.addMapping<Contact::Fn, Buffer>(&Buffer::fn); | ||
43 | propertyMapper.addMapping<Contact::Emails, Buffer>(&Buffer::emails); | ||
44 | propertyMapper.addMapping<Contact::Vcard, Buffer>(&Buffer::vcard); | ||
45 | propertyMapper.addMapping<Contact::Addressbook, Buffer>(&Buffer::addressbook); | ||
46 | } | ||
47 | |||
48 | void TypeImplementation<Contact>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper) | ||
49 | { | ||
50 | propertyMapper.addMapping<Contact::Uid>(&BufferBuilder::add_uid); | ||
51 | propertyMapper.addMapping<Contact::Fn>(&BufferBuilder::add_fn); | ||
52 | propertyMapper.addMapping<Contact::Emails>(&BufferBuilder::add_emails); | ||
53 | propertyMapper.addMapping<Contact::Vcard>(&BufferBuilder::add_vcard); | ||
54 | propertyMapper.addMapping<Contact::Addressbook>(&BufferBuilder::add_addressbook); | ||
55 | } | ||
56 | |||
57 | void TypeImplementation<Contact>::configure(IndexPropertyMapper &) | ||
58 | { | ||
59 | |||
60 | } | ||