summaryrefslogtreecommitdiff
path: root/plugins/VoiceService/src/VoiceCall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/VoiceService/src/VoiceCall.cpp')
-rw-r--r--plugins/VoiceService/src/VoiceCall.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/VoiceService/src/VoiceCall.cpp b/plugins/VoiceService/src/VoiceCall.cpp
index 272011b71c..69ac72df98 100644
--- a/plugins/VoiceService/src/VoiceCall.cpp
+++ b/plugins/VoiceService/src/VoiceCall.cpp
@@ -271,7 +271,7 @@ void VoiceCall::Notify(bool popup, bool sound, bool clist)
return;
if (popup)
- ShowPopup(hContact, displayName, TranslateW(popupTexts[state]));
+ ShowPopup(hContact, displayName, TranslateW(popupTexts[state]), this);
if (clist && state == VOICE_STATE_RINGING) {
CLISTEVENT ce = {};
@@ -350,3 +350,15 @@ void VoiceCall::SendDTMF(wchar_t c)
CallProtoService(module->name, PS_VOICE_SEND_DTMF, (WPARAM)id, (LPARAM)c);
}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+void ShowCallWindow(VoiceCall *call)
+{
+ if (calls.indexOf(call) == -1)
+ return;
+
+ call->Show();
+ SetActiveWindow(call->GetHwnd());
+ SetForegroundWindow(call->GetHwnd());
+}