From 98a370e79fa8143fcd9dc807964f870c0eb65db4 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 24 Aug 2017 16:01:39 +0200 Subject: [PATCH] feat(core): add empty `Core` class --- src/CMakeLists.txt | 2 ++ src/core/core.cpp | 36 ++++++++++++++++++++++++++++++++++++ src/core/core.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 src/core/core.cpp create mode 100644 src/core/core.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 336ed8de9..82a01ba77 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,6 +22,7 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES content/content.h + core/core.h cpim/cpim.h cpim/header/cpim-core-headers.h cpim/header/cpim-generic-header.h @@ -53,6 +54,7 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES set(LINPHONE_CXX_OBJECTS_SOURCE_FILES content/content.cpp + core/core.cpp cpim/header/cpim-core-headers.cpp cpim/header/cpim-generic-header.cpp cpim/header/cpim-header.cpp diff --git a/src/core/core.cpp b/src/core/core.cpp new file mode 100644 index 000000000..2d4e9696e --- /dev/null +++ b/src/core/core.cpp @@ -0,0 +1,36 @@ +/* + * core.cpp + * Copyright (C) 2017 Belledonne Communications SARL + * + * 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 3 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, see . + */ + +#include "object/object-p.h" + +#include "core.h" + +// ============================================================================= + +LINPHONE_BEGIN_NAMESPACE + +class CorePrivate : public ObjectPrivate { +public: + // TODO. +}; + +// ----------------------------------------------------------------------------- + +Core::Core (CorePrivate &p) : Object(p) {} + +LINPHONE_END_NAMESPACE diff --git a/src/core/core.h b/src/core/core.h new file mode 100644 index 000000000..1d4874c31 --- /dev/null +++ b/src/core/core.h @@ -0,0 +1,43 @@ +/* + * core.h + * Copyright (C) 2017 Belledonne Communications SARL + * + * 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 3 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, see . + */ + +#ifndef _CORE_H_ +#define _CORE_H_ + +#include "object/object.h" + +// ============================================================================= + +LINPHONE_BEGIN_NAMESPACE + +class CorePrivate; + +class LINPHONE_PUBLIC Core : public Object { +public: + // Nothing for the moment. + +private: + Core (CorePrivate &p); + + L_DECLARE_PRIVATE(Core); + L_DISABLE_COPY(Core); +}; + +LINPHONE_END_NAMESPACE + +#endif // ifndef _CORE_H_