diff options
Diffstat (limited to 'common/domain/addressbook.cpp')
-rw-r--r-- | common/domain/addressbook.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/common/domain/addressbook.cpp b/common/domain/addressbook.cpp deleted file mode 100644 index d1a3eaf..0000000 --- a/common/domain/addressbook.cpp +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 Christian Mollekopf <chrigi_1@fastaddressbook.fm> | ||
3 | * | ||
4 | * 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 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
18 | */ | ||
19 | #include "addressbook.h" | ||
20 | |||
21 | #include <QByteArray> | ||
22 | #include <QString> | ||
23 | |||
24 | #include "../propertymapper.h" | ||
25 | #include "../typeindex.h" | ||
26 | #include "entitybuffer.h" | ||
27 | #include "entity_generated.h" | ||
28 | |||
29 | #include "addressbook_generated.h" | ||
30 | |||
31 | using namespace Sink::ApplicationDomain; | ||
32 | |||
33 | void TypeImplementation<Addressbook>::configure(TypeIndex &index) | ||
34 | { | ||
35 | index.addProperty<QByteArray>(Addressbook::Parent::name); | ||
36 | index.addProperty<QString>(Addressbook::Name::name); | ||
37 | } | ||
38 | |||
39 | void TypeImplementation<Addressbook>::configure(ReadPropertyMapper<Buffer> &propertyMapper) | ||
40 | { | ||
41 | propertyMapper.addMapping<Addressbook::Parent, Buffer>(&Buffer::parent); | ||
42 | propertyMapper.addMapping<Addressbook::Name, Buffer>(&Buffer::name); | ||
43 | } | ||
44 | |||
45 | void TypeImplementation<Addressbook>::configure(WritePropertyMapper<BufferBuilder> &propertyMapper) | ||
46 | { | ||
47 | propertyMapper.addMapping<Addressbook::Parent>(&BufferBuilder::add_parent); | ||
48 | propertyMapper.addMapping<Addressbook::Name>(&BufferBuilder::add_name); | ||
49 | } | ||
50 | |||
51 | void TypeImplementation<Addressbook>::configure(IndexPropertyMapper &) | ||
52 | { | ||
53 | |||
54 | } | ||