| 77 | } |
| 78 | |
| 79 | void 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 | |
| 103 | void VOIPGUIHandler::ReceivedVoipData(const RsPeerId &peer_id) |
| 104 | { |
no test coverage detected