summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r--protocols/Skype/src/skype_utils.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp
index 99463853c3..f24f347965 100644
--- a/protocols/Skype/src/skype_utils.cpp
+++ b/protocols/Skype/src/skype_utils.cpp
@@ -155,4 +155,26 @@ int CSkypeProto::SkypeToMirandaLoginError(CAccount::LOGOUTREASON logoutReason)
}
return loginError;
+}
+
+void CSkypeProto::ShowNotification(const wchar_t *sid, const wchar_t *message, int flags)
+{
+ if (::Miranda_Terminated()) return;
+
+ if (!::ServiceExists(MS_POPUP_ADDPOPUPCLASS))
+ {
+ MessageBoxW(
+ NULL,
+ message,
+ TranslateT("Skype Protocol"),
+ MB_OK);
+ }
+ else
+ {
+ POPUPDATACLASS ppd = { sizeof(ppd) };
+ ppd.ptszTitle = sid;
+ ppd.ptszText = message;
+
+ ::CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
+ }
} \ No newline at end of file