From 3e9b07432dd6d99cccdd0839a5b33d5e6b8ab4d2 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 24 Aug 2017 15:55:57 +0200 Subject: [PATCH] feat(core): add empty `Content` class --- src/CMakeLists.txt | 2 ++ src/content/content.cpp | 37 +++++++++++++++++++++++++++++++++ src/content/content.h | 45 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 src/content/content.cpp create mode 100644 src/content/content.h diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 29d437147..336ed8de9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,6 +21,7 @@ ############################################################################ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES + content/content.h cpim/cpim.h cpim/header/cpim-core-headers.h cpim/header/cpim-generic-header.h @@ -51,6 +52,7 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES ) set(LINPHONE_CXX_OBJECTS_SOURCE_FILES + content/content.cpp cpim/header/cpim-core-headers.cpp cpim/header/cpim-generic-header.cpp cpim/header/cpim-header.cpp diff --git a/src/content/content.cpp b/src/content/content.cpp new file mode 100644 index 000000000..2003b1613 --- /dev/null +++ b/src/content/content.cpp @@ -0,0 +1,37 @@ +/* + * content.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 "content.h" + +// ============================================================================= + +LINPHONE_BEGIN_NAMESPACE + +class ContentPrivate : public ObjectPrivate { +private: + + L_DECLARE_PUBLIC(Content); +}; + +// ----------------------------------------------------------------------------- + +Content::Content (ContentPrivate &p) : Object(p) {} + +LINPHONE_END_NAMESPACE diff --git a/src/content/content.h b/src/content/content.h new file mode 100644 index 000000000..fa59de1e7 --- /dev/null +++ b/src/content/content.h @@ -0,0 +1,45 @@ +/* + * content.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 _CONTENT_H_ +#define _CONTENT_H_ + +#include "object/object.h" + +// ============================================================================= + +LINPHONE_BEGIN_NAMESPACE + +class ContentPrivate; + +class LINPHONE_PUBLIC Content : public Object { + friend class Core; + +public: + // Nothing for the moment. + +private: + Content (ContentPrivate &p); + + L_DECLARE_PRIVATE(Content); + L_DISABLE_COPY(Content); +}; + +LINPHONE_END_NAMESPACE + +#endif // ifndef _CONTENT_H_