From 6a3f4ce87c015533cb5c28bb64255bd70e0de144 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sun, 11 Oct 2015 10:31:06 +0200 Subject: [PATCH] Update Toaster when ringing. --- plugins/VOIP/gui/VOIPChatWidgetHolder.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp index e04e1b9e1..abcb170e8 100644 --- a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp +++ b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp @@ -397,11 +397,6 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id) buttonMapTakeCall.insert(QString("a").append(buttonName), QPair(buttonT, buttonD)); } - - //TODO make a sound for the incoming call - //soundManager->play(VOIP_SOUND_INCOMING_CALL); - - if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipAudioCall(peer_id); } } @@ -453,11 +448,6 @@ void VOIPChatWidgetHolder::addNewVideoButtonMap(const RsPeerId &peer_id) buttonMapTakeCall.insert(QString("v").append(buttonName), QPair(buttonT, buttonD)); } - - //TODO make a sound for the incoming call - // soundManager->play(VOIP_SOUND_INCOMING_CALL); - - if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipVideoCall(peer_id); } } @@ -1098,6 +1088,11 @@ void VOIPChatWidgetHolder::timerAudioRingTimeOut() } audioCaptureToggleButton->setToolTip(tr("Answer")); + //TODO make a sound for the incoming call + //soundManager->play(VOIP_SOUND_INCOMING_CALL); + + if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipAudioCall(mChatWidget->getChatId().toPeerId()); + timerAudioRing->start(); } else { //Nothing to do, reset stat @@ -1144,6 +1139,11 @@ void VOIPChatWidgetHolder::timerVideoRingTimeOut() } videoCaptureToggleButton->setToolTip(tr("Answer")); + //TODO make a sound for the incoming call + // soundManager->play(VOIP_SOUND_INCOMING_CALL); + + if (mVOIPNotify) mVOIPNotify->notifyReceivedVoipVideoCall(mChatWidget->getChatId().toPeerId()); + timerVideoRing->start(); } else { //Nothing to do, reset stat