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

Method ReceivedVoipAccept

plugins/VOIP/gui/VOIPGUIHandler.cpp:79–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void VOIPGUIHandler::ReceivedVoipAccept(const RsPeerId &peer_id, int flags)
80{
81#ifdef VOIPGUIHANDLER_DEBUG
82 std::cerr << "****** VOIPGUIHandler: received VoipAccept from peer " << peer_id.toStdString() << " with flags==" << flags << std::endl;
83#endif
84 ChatDialog *di = ChatDialog::getExistingChat(ChatId(peer_id)) ;
85 if (di) {
86 ChatWidget *cw = di->getChatWidget();
87 if(cw) {
88 const QList<ChatWidgetHolder*> &chatWidgetHolderList = cw->chatWidgetHolderList();
89
90 foreach (ChatWidgetHolder *chatWidgetHolder, chatWidgetHolderList)
91 {
92 VOIPChatWidgetHolder *acwh = dynamic_cast<VOIPChatWidgetHolder*>(chatWidgetHolder) ;
93
94 if (acwh)
95 acwh->ReceivedVoipAccept(peer_id, flags);
96 }
97 }
98 } else {
99 std::cerr << "VOIPGUIHandler::ReceivedVoipAccept() Error: Received accept call for a chat dialog that does not stand VOIP (Peer id = " << peer_id.toStdString() << "!" << std::endl;
100 }
101}
102
103void VOIPGUIHandler::ReceivedVoipData(const RsPeerId &peer_id)
104{

Callers 1

foreachFunction · 0.45

Calls 1

getChatWidgetMethod · 0.45

Tested by

no test coverage detected