summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_utils.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-20 19:30:51 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-20 19:30:51 +0000
commita99d97e92e9263dc53c072fdd39925ef513d1315 (patch)
tree008c1764446b11b325d626bda23cc6fc39726f9c /protocols/Skype/src/skype_utils.cpp
parent0414c927e4a23bd6232e0ef64c34dbc3482793b1 (diff)
- added simple notification func
git-svn-id: http://svn.miranda-ng.org/main/trunk@2003 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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