Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
894391c1
Commit
894391c1
authored
Oct 16, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(Events): add a ConferenceSubjectEvent
parent
22c6e1c4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
128 additions
and
19 deletions
+128
-19
include/linphone/enums/event-log-enums.h
include/linphone/enums/event-log-enums.h
+2
-1
src/CMakeLists.txt
src/CMakeLists.txt
+2
-0
src/db/main-db.cpp
src/db/main-db.cpp
+1
-0
src/event-log/conference-event-p.h
src/event-log/conference-event-p.h
+1
-1
src/event-log/conference-event.cpp
src/event-log/conference-event.cpp
+11
-10
src/event-log/conference-event.h
src/event-log/conference-event.h
+3
-4
src/event-log/conference-participant-device-event.cpp
src/event-log/conference-participant-device-event.cpp
+1
-1
src/event-log/conference-participant-event.cpp
src/event-log/conference-participant-event.cpp
+1
-1
src/event-log/conference-subject-event.cpp
src/event-log/conference-subject-event.cpp
+60
-0
src/event-log/conference-subject-event.h
src/event-log/conference-subject-event.h
+46
-0
src/event-log/event-log.h
src/event-log/event-log.h
+0
-1
No files found.
include/linphone/enums/event-log-enums.h
View file @
894391c1
...
...
@@ -34,6 +34,7 @@
F(ConferenceParticipantSetAdmin) \
F(ConferenceParticipantUnsetAdmin) \
F(ConferenceParticipantDeviceAdded) \
F(ConferenceParticipantDeviceRemoved)
F(ConferenceParticipantDeviceRemoved) \
F(ConferenceSubjectChanged)
#endif // ifndef _EVENT_LOG_ENUMS_H_
src/CMakeLists.txt
View file @
894391c1
...
...
@@ -97,6 +97,7 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES
event-log/conference-participant-device-event.h
event-log/conference-participant-event-p.h
event-log/conference-participant-event.h
event-log/conference-subject-event.h
event-log/event-log-p.h
event-log/event-log.h
hacks/hacks.h
...
...
@@ -174,6 +175,7 @@ set(LINPHONE_CXX_OBJECTS_SOURCE_FILES
event-log/conference-event.cpp
event-log/conference-participant-device-event.cpp
event-log/conference-participant-event.cpp
event-log/conference-subject-event.cpp
event-log/event-log.cpp
hacks/hacks.cpp
logger/logger.cpp
...
...
src/db/main-db.cpp
View file @
894391c1
...
...
@@ -455,6 +455,7 @@ MainDb::MainDb () : AbstractDb(*new MainDbPrivate) {}
case
EventLog
::
Type
::
ConferenceParticipantUnsetAdmin
:
case
EventLog
::
Type
::
ConferenceParticipantDeviceAdded
:
case
EventLog
::
Type
::
ConferenceParticipantDeviceRemoved
:
case
EventLog
::
Type
::
ConferenceSubjectChanged
:
break
;
}
...
...
src/event-log/conference-event-p.h
View file @
894391c1
...
...
@@ -30,7 +30,7 @@ LINPHONE_BEGIN_NAMESPACE
class
ConferenceEventPrivate
:
public
EventLogPrivate
{
private:
Address
a
ddress
;
Address
conferenceA
ddress
;
L_DECLARE_PUBLIC
(
ConferenceEvent
);
};
...
...
src/event-log/conference-event.cpp
View file @
894391c1
...
...
@@ -26,34 +26,35 @@ using namespace std;
LINPHONE_BEGIN_NAMESPACE
ConferenceEvent
::
ConferenceEvent
(
Type
type
,
const
Address
&
a
ddress
)
:
ConferenceEvent
::
ConferenceEvent
(
Type
type
,
const
Address
&
conferenceA
ddress
)
:
EventLog
(
*
new
ConferenceEventPrivate
,
type
)
{
L_D
();
L_ASSERT
(
type
==
Type
::
ConferenceCreated
||
type
==
Type
::
ConferenceDestroyed
);
d
->
address
=
a
ddress
;
d
->
conferenceAddress
=
conferenceA
ddress
;
}
ConferenceEvent
::
ConferenceEvent
(
const
ConferenceEvent
&
src
)
:
ConferenceEvent
(
src
.
getType
(),
src
.
getAddress
())
{}
ConferenceEvent
::
ConferenceEvent
(
const
ConferenceEvent
&
src
)
:
ConferenceEvent
(
src
.
getType
(),
src
.
getConferenceAddress
())
{}
ConferenceEvent
::
ConferenceEvent
(
ConferenceEventPrivate
&
p
,
Type
type
,
const
Address
&
a
ddress
)
:
ConferenceEvent
::
ConferenceEvent
(
ConferenceEventPrivate
&
p
,
Type
type
,
const
Address
&
conferenceA
ddress
)
:
EventLog
(
p
,
type
)
{
L_D
();
d
->
address
=
a
ddress
;
}
L_D
();
d
->
conferenceAddress
=
conferenceA
ddress
;
}
ConferenceEvent
&
ConferenceEvent
::
operator
=
(
const
ConferenceEvent
&
src
)
{
L_D
();
if
(
this
!=
&
src
)
{
EventLog
::
operator
=
(
src
);
d
->
a
ddress
=
src
.
getPrivate
()
->
a
ddress
;
d
->
conferenceA
ddress
=
src
.
getPrivate
()
->
conferenceA
ddress
;
}
return
*
this
;
}
const
Address
&
ConferenceEvent
::
getAddress
()
const
{
const
Address
&
ConferenceEvent
::
get
Conference
Address
()
const
{
L_D
();
return
d
->
a
ddress
;
return
d
->
conferenceA
ddress
;
}
LINPHONE_END_NAMESPACE
src/event-log/conference-event.h
View file @
894391c1
...
...
@@ -31,16 +31,15 @@ class ConferenceEventPrivate;
class
LINPHONE_PUBLIC
ConferenceEvent
:
public
EventLog
{
public:
ConferenceEvent
(
Type
type
,
const
Address
&
a
ddress
);
ConferenceEvent
(
Type
type
,
const
Address
&
conferenceA
ddress
);
ConferenceEvent
(
const
ConferenceEvent
&
src
);
virtual
~
ConferenceEvent
()
=
default
;
ConferenceEvent
&
operator
=
(
const
ConferenceEvent
&
src
);
const
Address
&
getAddress
()
const
;
const
Address
&
get
Conference
Address
()
const
;
protected:
ConferenceEvent
(
ConferenceEventPrivate
&
p
,
Type
type
,
const
Address
&
a
ddress
);
ConferenceEvent
(
ConferenceEventPrivate
&
p
,
Type
type
,
const
Address
&
conferenceA
ddress
);
private:
L_DECLARE_PRIVATE
(
ConferenceEvent
);
...
...
src/event-log/conference-participant-device-event.cpp
View file @
894391c1
...
...
@@ -55,7 +55,7 @@ ConferenceParticipantDeviceEvent::ConferenceParticipantDeviceEvent (
ConferenceParticipantDeviceEvent
::
ConferenceParticipantDeviceEvent
(
const
ConferenceParticipantDeviceEvent
&
src
)
:
ConferenceParticipantDeviceEvent
(
src
.
getType
(),
src
.
getAddress
(),
src
.
get
Conference
Address
(),
src
.
getParticipantAddress
(),
src
.
getGruuAddress
()
)
{}
...
...
src/event-log/conference-participant-event.cpp
View file @
894391c1
...
...
@@ -43,7 +43,7 @@ ConferenceParticipantEvent::ConferenceParticipantEvent (
}
ConferenceParticipantEvent
::
ConferenceParticipantEvent
(
const
ConferenceParticipantEvent
&
src
)
:
ConferenceParticipantEvent
(
src
.
getType
(),
src
.
getAddress
(),
src
.
getParticipantAddress
())
{}
ConferenceParticipantEvent
(
src
.
getType
(),
src
.
get
Conference
Address
(),
src
.
getParticipantAddress
())
{}
ConferenceParticipantEvent
::
ConferenceParticipantEvent
(
ConferenceParticipantEventPrivate
&
p
,
...
...
src/event-log/conference-subject-event.cpp
0 → 100644
View file @
894391c1
/*
* conference-subject-event.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 "conference-event-p.h"
#include "conference-subject-event.h"
// =============================================================================
using
namespace
std
;
LINPHONE_BEGIN_NAMESPACE
class
ConferenceSubjectEventPrivate
:
public
ConferenceEventPrivate
{
public:
string
subject
;
};
// -----------------------------------------------------------------------------
ConferenceSubjectEvent
::
ConferenceSubjectEvent
(
const
Address
&
address
,
const
string
&
subject
)
:
ConferenceEvent
(
*
new
ConferenceSubjectEventPrivate
,
Type
::
ConferenceSubjectChanged
,
address
)
{
L_D
();
d
->
subject
=
subject
;
}
ConferenceSubjectEvent
::
ConferenceSubjectEvent
(
const
ConferenceSubjectEvent
&
src
)
:
ConferenceSubjectEvent
(
src
.
getConferenceAddress
(),
src
.
getSubject
())
{}
ConferenceSubjectEvent
&
ConferenceSubjectEvent
::
operator
=
(
const
ConferenceSubjectEvent
&
src
)
{
L_D
();
if
(
this
!=
&
src
)
{
ConferenceEvent
::
operator
=
(
src
);
d
->
subject
=
src
.
getPrivate
()
->
subject
;
}
return
*
this
;
}
const
string
&
ConferenceSubjectEvent
::
getSubject
()
const
{
L_D
();
return
d
->
subject
;
}
LINPHONE_END_NAMESPACE
src/event-log/conference-subject-event.h
0 → 100644
View file @
894391c1
/*
* conference-subject-event.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 _CONFERENCE_SUBJECT_EVENT_H_
#define _CONFERENCE_SUBJECT_EVENT_H_
#include "conference-event.h"
// =============================================================================
LINPHONE_BEGIN_NAMESPACE
class
ConferenceSubjectEventPrivate
;
class
LINPHONE_PUBLIC
ConferenceSubjectEvent
:
public
ConferenceEvent
{
public:
ConferenceSubjectEvent
(
const
Address
&
conferenceAddress
,
const
std
::
string
&
subject
);
ConferenceSubjectEvent
(
const
ConferenceSubjectEvent
&
src
);
ConferenceSubjectEvent
&
operator
=
(
const
ConferenceSubjectEvent
&
src
);
const
std
::
string
&
getSubject
()
const
;
private:
L_DECLARE_PRIVATE
(
ConferenceSubjectEvent
);
};
LINPHONE_END_NAMESPACE
#endif // ifndef _CONFERENCE_SUBJECT_EVENT_H_
src/event-log/event-log.h
View file @
894391c1
...
...
@@ -39,7 +39,6 @@ public:
EventLog
();
EventLog
(
const
EventLog
&
src
);
virtual
~
EventLog
()
=
default
;
EventLog
&
operator
=
(
const
EventLog
&
src
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment