MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / ReceivedVoipHangUp

Method ReceivedVoipHangUp

plugins/VOIP/gui/VOIPGUIHandler.cpp:55–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void VOIPGUIHandler::ReceivedVoipHangUp(const RsPeerId &peer_id, int flags)
56{
57#ifdef VOIPGUIHANDLER_DEBUG
58 std::cerr << "****** VOIPGUIHandler: received HangUp from peer " << peer_id.toStdString() << " with flags==" << flags << std::endl;
59#endif
60 ChatDialog *di = ChatDialog::getExistingChat(ChatId(peer_id)) ;
61 if (di) {
62 ChatWidget *cw = di->getChatWidget();
63 if(cw) {
64 const QList<ChatWidgetHolder*> &chatWidgetHolderList = cw->chatWidgetHolderList();
65
66 foreach (ChatWidgetHolder *chatWidgetHolder, chatWidgetHolderList)
67 {
68 VOIPChatWidgetHolder *acwh = dynamic_cast<VOIPChatWidgetHolder*>(chatWidgetHolder) ;
69
70 if (acwh)
71 acwh->ReceivedVoipHangUp(peer_id, flags);
72 }
73 }
74 } else {
75 std::cerr << "VOIPGUIHandler::ReceivedVoipHangUp() Error: Received hangup call for a chat dialog that does not stand VOIP (Peer id = " << peer_id.toStdString() << "!" << std::endl;
76 }
77}
78
79void VOIPGUIHandler::ReceivedVoipAccept(const RsPeerId &peer_id, int flags)
80{

Callers 1

foreachFunction · 0.45

Calls 1

getChatWidgetMethod · 0.45

Tested by

no test coverage detected