From a99d97e92e9263dc53c072fdd39925ef513d1315 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 20 Oct 2012 19:30:51 +0000 Subject: - added simple notification func git-svn-id: http://svn.miranda-ng.org/main/trunk@2003 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_utils.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'protocols/Skype/src/skype_utils.cpp') 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 -- cgit v1.2.3