From 57a88e6c1514b85d25b066059defcd62d2ccd8d6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 9 Mar 2017 16:14:02 +0100 Subject: Addressbook support --- common/domain/addressbook.h | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 common/domain/addressbook.h (limited to 'common/domain/addressbook.h') diff --git a/common/domain/addressbook.h b/common/domain/addressbook.h new file mode 100644 index 0000000..6475073 --- /dev/null +++ b/common/domain/addressbook.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2017 Christian Mollekopf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#pragma once + +#include "applicationdomaintype.h" + +template +class ReadPropertyMapper; +template +class WritePropertyMapper; +class IndexPropertyMapper; + +class TypeIndex; + +namespace Sink { + +namespace ApplicationDomain { + namespace Buffer { + struct Addressbook; + struct AddressbookBuilder; + } + +template<> +class TypeImplementation { +public: + typedef Sink::ApplicationDomain::Buffer::Addressbook Buffer; + typedef Sink::ApplicationDomain::Buffer::AddressbookBuilder BufferBuilder; + static void configure(TypeIndex &); + static void configure(ReadPropertyMapper &); + static void configure(WritePropertyMapper &); + static void configure(IndexPropertyMapper &indexPropertyMapper); +}; + +} +} -- cgit v1.2.3