Commit 053c0976 authored by Ronan's avatar Ronan

feat(Object): provide a connection object

parent 7b82d091
......@@ -139,6 +139,7 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES
object/base-object.h
object/clonable-object-p.h
object/clonable-object.h
object/connection.h
object/internal/arguments.h
object/internal/function-call.h
object/internal/function-pointer.h
......@@ -245,6 +246,7 @@ set(LINPHONE_CXX_OBJECTS_SOURCE_FILES
object/app-data-container.cpp
object/base-object.cpp
object/clonable-object.cpp
object/connection.cpp
object/object.cpp
object/property-container.cpp
sal/call-op.cpp
......
/*
* connection.cpp
* Copyright (C) 2010-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 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.
*/
#include "connection.h"
// =============================================================================
LINPHONE_BEGIN_NAMESPACE
// TODO.
LINPHONE_END_NAMESPACE
/*
* connection.h
* Copyright (C) 2010-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 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.
*/
#ifndef _L_CONNECTION_H_
#define _L_CONNECTION_H_
#include "linphone/utils/general.h"
// =============================================================================
LINPHONE_BEGIN_NAMESPACE
class Connection {
public:
Connection () = default;
~Connection () = default;
operator bool () const {
return mConnected;
}
private:
// Object *mSender = nullptr;
// Object *mReceiver = nullptr;
bool mConnected = false;
};
LINPHONE_END_NAMESPACE
#endif // ifndef _L_CONNECTION_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment