mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Add logging facilities in participant device and server group chat room.
This commit is contained in:
parent
13182409bf
commit
81eac8777e
4 changed files with 24 additions and 0 deletions
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue