diff options
Diffstat (limited to 'common/domain/contact.h')
-rw-r--r-- | common/domain/contact.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/common/domain/contact.h b/common/domain/contact.h deleted file mode 100644 index 976f16e..0000000 --- a/common/domain/contact.h +++ /dev/null | |||
@@ -1,58 +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 | #pragma once | ||
21 | |||
22 | #include "applicationdomaintype.h" | ||
23 | |||
24 | class QByteArray; | ||
25 | |||
26 | template<typename T> | ||
27 | class ReadPropertyMapper; | ||
28 | template<typename T> | ||
29 | class WritePropertyMapper; | ||
30 | class IndexPropertyMapper; | ||
31 | |||
32 | class TypeIndex; | ||
33 | |||
34 | namespace Sink { | ||
35 | namespace ApplicationDomain { | ||
36 | namespace Buffer { | ||
37 | struct Contact; | ||
38 | struct ContactBuilder; | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Implements all type-specific code such as updating and querying indexes. | ||
43 | * | ||
44 | * These are type specifiy default implementations. Theoretically a resource could implement it's own implementation. | ||
45 | */ | ||
46 | template<> | ||
47 | class TypeImplementation<Sink::ApplicationDomain::Contact> { | ||
48 | public: | ||
49 | typedef Sink::ApplicationDomain::Buffer::Contact Buffer; | ||
50 | typedef Sink::ApplicationDomain::Buffer::ContactBuilder BufferBuilder; | ||
51 | static void configure(TypeIndex &); | ||
52 | static void configure(ReadPropertyMapper<Buffer> &); | ||
53 | static void configure(WritePropertyMapper<BufferBuilder> &); | ||
54 | static void configure(IndexPropertyMapper &indexPropertyMapper); | ||
55 | }; | ||
56 | |||
57 | } | ||
58 | } | ||