| 53 | } |
| 54 | |
| 55 | void 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 | |
| 79 | void VOIPGUIHandler::ReceivedVoipAccept(const RsPeerId &peer_id, int flags) |
| 80 | { |
no test coverage detected