From 0815156ef93cb9f48073a777b888ed47b579d695 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 25 May 2015 23:58:59 +0200 Subject: Moved remaining parts of applicationdomaintype --- common/CMakeLists.txt | 1 + common/clientapi.cpp | 23 ----------------- common/domain/applicationdomaintype.cpp | 45 +++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 23 deletions(-) create mode 100644 common/domain/applicationdomaintype.cpp (limited to 'common') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 37b5b3f..6a048ea 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -25,6 +25,7 @@ set(command_SRCS threadboundary.cpp messagequeue.cpp index.cpp + domain/applicationdomaintype.cpp domain/event.cpp ${storage_SRCS}) diff --git a/common/clientapi.cpp b/common/clientapi.cpp index d287fcf..2f8763f 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp @@ -16,29 +16,6 @@ namespace async namespace Akonadi2 { -namespace ApplicationDomain -{ - -template<> -QByteArray getTypeName() -{ - return "event"; -} - -template<> -QByteArray getTypeName() -{ - return "todo"; -} - -template<> -QByteArray getTypeName() -{ - return "akonadiresource"; -} - -} // namespace Domain - void Store::shutdown(const QByteArray &identifier) { Trace() << "shutdown"; diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp new file mode 100644 index 0000000..47ff0c3 --- /dev/null +++ b/common/domain/applicationdomaintype.cpp @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2014 Christian Mollekopf + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) version 3, or any + * later version accepted by the membership of KDE e.V. (or its + * successor approved by the membership of KDE e.V.), which shall + * act as a proxy defined in Section 6 of version 3 of the license. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see . + */ +#include "applicationdomaintype.h" + +namespace Akonadi2 { +namespace ApplicationDomain { + +template<> +QByteArray getTypeName() +{ + return "event"; +} + +template<> +QByteArray getTypeName() +{ + return "todo"; +} + +template<> +QByteArray getTypeName() +{ + return "akonadiresource"; +} + +} +} + -- cgit v1.2.3