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
f94554d7
Commit
f94554d7
authored
Dec 19, 2017
by
Ronan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(chat-room): CapabilitiesMask is now an EnumMask type
parent
41a4a345
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
include/linphone/utils/enum-mask.h
include/linphone/utils/enum-mask.h
+0
-2
src/chat/chat-room/abstract-chat-room.h
src/chat/chat-room/abstract-chat-room.h
+3
-1
src/chat/chat-room/basic-chat-room.cpp
src/chat/chat-room/basic-chat-room.cpp
+1
-1
src/chat/chat-room/client-group-chat-room.cpp
src/chat/chat-room/client-group-chat-room.cpp
+1
-1
src/chat/chat-room/real-time-text-chat-room.cpp
src/chat/chat-room/real-time-text-chat-room.cpp
+1
-1
src/chat/chat-room/server-group-chat-room-stub.cpp
src/chat/chat-room/server-group-chat-room-stub.cpp
+1
-1
No files found.
include/linphone/utils/enum-mask.h
View file @
f94554d7
...
...
@@ -40,8 +40,6 @@ public:
std
::
is_signed
<
typename
std
::
underlying_type
<
T
>::
type
>::
value
,
int
,
unsigned
int
>::
type
StorageType
;
typedef
std
::
integral_constant
<
int
,
0
>
Zero
;
// Zero initializer: Take 0 value or no value.
constexpr
EnumMask
(
int
*
zero
=
0
)
:
mMask
(
0
)
{}
...
...
src/chat/chat-room/abstract-chat-room.h
View file @
f94554d7
...
...
@@ -20,6 +20,8 @@
#ifndef _ABSTRACT_CHAT_ROOM_H_
#define _ABSTRACT_CHAT_ROOM_H_
#include "linphone/utils/enum-mask.h"
#include "chat/chat-message/chat-message.h"
#include "conference/conference-interface.h"
#include "core/core-accessor.h"
...
...
@@ -43,7 +45,7 @@ public:
L_DECLARE_ENUM
(
Capabilities
,
L_ENUM_VALUES_CHAT_ROOM_CAPABILITIES
);
L_DECLARE_ENUM
(
State
,
L_ENUM_VALUES_CHAT_ROOM_STATE
);
typedef
int
CapabilitiesMask
;
typedef
EnumMask
<
Capabilities
>
CapabilitiesMask
;
virtual
const
ChatRoomId
&
getChatRoomId
()
const
=
0
;
...
...
src/chat/chat-room/basic-chat-room.cpp
View file @
f94554d7
...
...
@@ -44,7 +44,7 @@ BasicChatRoom::BasicChatRoom (
}
BasicChatRoom
::
CapabilitiesMask
BasicChatRoom
::
getCapabilities
()
const
{
return
static_cast
<
CapabilitiesMask
>
(
Capabilities
::
Basic
)
;
return
Capabilities
::
Basic
;
}
bool
BasicChatRoom
::
hasBeenLeft
()
const
{
...
...
src/chat/chat-room/client-group-chat-room.cpp
View file @
f94554d7
...
...
@@ -159,7 +159,7 @@ shared_ptr<Core> ClientGroupChatRoom::getCore () const {
}
ClientGroupChatRoom
::
CapabilitiesMask
ClientGroupChatRoom
::
getCapabilities
()
const
{
return
static_cast
<
CapabilitiesMask
>
(
Capabilities
::
Conference
)
;
return
Capabilities
::
Conference
;
}
bool
ClientGroupChatRoom
::
hasBeenLeft
()
const
{
...
...
src/chat/chat-room/real-time-text-chat-room.cpp
View file @
f94554d7
...
...
@@ -107,7 +107,7 @@ RealTimeTextChatRoom::RealTimeTextChatRoom (const shared_ptr<Core> &core, const
BasicChatRoom
(
*
new
RealTimeTextChatRoomPrivate
,
core
,
chatRoomId
)
{}
RealTimeTextChatRoom
::
CapabilitiesMask
RealTimeTextChatRoom
::
getCapabilities
()
const
{
return
BasicChatRoom
::
getCapabilities
()
|
static_cast
<
CapabilitiesMask
>
(
Capabilities
::
RealTimeText
)
;
return
BasicChatRoom
::
getCapabilities
()
|
Capabilities
::
RealTimeText
;
}
uint32_t
RealTimeTextChatRoom
::
getChar
()
const
{
...
...
src/chat/chat-room/server-group-chat-room-stub.cpp
View file @
f94554d7
...
...
@@ -103,7 +103,7 @@ ServerGroupChatRoom::ServerGroupChatRoom (
)
:
ChatRoom
(
*
new
ServerGroupChatRoomPrivate
,
core
,
ChatRoomId
(
peerAddress
,
peerAddress
)),
LocalConference
(
core
,
peerAddress
,
nullptr
)
{}
int
ServerGroupChatRoom
::
getCapabilities
()
const
{
ServerGroupChatRoom
::
CapabilitiesMask
ServerGroupChatRoom
::
getCapabilities
()
const
{
return
0
;
}
...
...
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