Commit 81eac877 authored by Ghislain MARY's avatar Ghislain MARY

Add logging facilities in participant device and server group chat room.

parent 13182409
......@@ -215,4 +215,10 @@ void ServerGroupChatRoom::leave () {}
void ServerGroupChatRoom::onFirstNotifyReceived (const IdentityAddress &addr) {}
// -----------------------------------------------------------------------------
ostream &operator<< (ostream &stream, const ServerGroupChatRoom *chatRoom) {
return stream << "ServerGroupChatRoom [" << chatRoom << "]";
}
LINPHONE_END_NAMESPACE
......@@ -93,6 +93,8 @@ private:
L_DISABLE_COPY(ServerGroupChatRoom);
};
std::ostream &operator<< (std::ostream &stream, const ServerGroupChatRoom *chatRoom);
LINPHONE_END_NAMESPACE
#endif // ifndef _L_SERVER_GROUP_CHAT_ROOM_H_
......@@ -47,4 +47,18 @@ void ParticipantDevice::setConferenceSubscribeEvent (LinphoneEvent *ev) {
mConferenceSubscribeEvent = linphone_event_ref(ev);
}
ostream &operator<< (ostream &stream, ParticipantDevice::State state) {
switch (state) {
case ParticipantDevice::State::Joining:
return stream << "Joining";
case ParticipantDevice::State::Present:
return stream << "Present";
case ParticipantDevice::State::Leaving:
return stream << "Leaving";
case ParticipantDevice::State::Left:
return stream << "Left";
}
return stream;
}
LINPHONE_END_NAMESPACE
......@@ -72,6 +72,8 @@ private:
L_DISABLE_COPY(ParticipantDevice);
};
std::ostream &operator<< (std::ostream &stream, ParticipantDevice::State state);
LINPHONE_END_NAMESPACE
#endif // ifndef _L_PARTICIPANT_DEVICE_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