mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04:00
Update Toaster when ringing.
This commit is contained in:
parent
3deee001d4
commit
6a3f4ce87c
1 changed files with 10 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue