mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
Update Toaster when ringing.
This commit is contained in:
parent
3deee001d4
commit
6a3f4ce87c
@ -397,11 +397,6 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id)
|
||||
|
||||
buttonMapTakeCall.insert(QString("a").append(buttonName), QPair<RSButtonOnText*, RSButtonOnText*>(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<RSButtonOnText*, RSButtonOnText*>(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
|
||||
|
Loading…
Reference in New Issue
Block a user