summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_utils.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-05-03 18:55:51 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-05-03 18:55:51 +0000
commit466affa123edae9767fa6b17334c050302865efd (patch)
treecfd14e1d21349524178d710d6c6e821969ff0b6d /protocols/SkypeWeb/src/skype_utils.cpp
parent9c6381373b4654b8a17f6679dacda941538a50fb (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13402 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_utils.cpp32
1 files changed, 30 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp
index 81ccde08d5..0b35bf7803 100644
--- a/protocols/SkypeWeb/src/skype_utils.cpp
+++ b/protocols/SkypeWeb/src/skype_utils.cpp
@@ -458,7 +458,7 @@ void CSkypeProto::ShowNotification(const TCHAR *caption, const TCHAR *message, i
if (Miranda_Terminated())
return;
- if (ServiceExists(MS_POPUP_ADDPOPUPT) && db_get_b(NULL, "Popup", "ModuleIsEnabled", 1))
+ if (ServiceExists(MS_POPUP_ADDPOPUPT))
{
POPUPDATAT ppd = { 0 };
ppd.lchContact = hContact;
@@ -475,8 +475,36 @@ void CSkypeProto::ShowNotification(const TCHAR *caption, const TCHAR *message, i
if (!PUAddPopupT(&ppd))
return;
}
+ /*
+ if (ServiceExists(MS_POPUP_ADDPOPUPT))
+ {
+ if (type == SKYPE_DB_EVENT_TYPE_INCOMING_CALL)
+ {
+ char className[256];
+
+ POPUPDATACLASS ppd = { 0 };
+ ppd.ptszTitle = caption;
+ ppd.ptszText = message;
+ ppd.hContact = hContact;
+ ppd.pszClassName = className;
+ mir_snprintf(className, SIZEOF(className), "%s_%s", m_szModuleName, "Call");
+ CallService(MS_POPUP_ADDPOPUPCLASS, 0, (LPARAM)&ppd);
+ return;
+ }
+ else
+ {
+ POPUPDATAT ppd = { 0 };
+ ppd.lchContact = hContact;
+ _tcsncpy(ppd.lptzContactName, caption, MAX_CONTACTNAME);
+ _tcsncpy(ppd.lptzText, message, MAX_SECONDLINE);
+ ppd.lchIcon = Skin_GetIcon("Skype_main");
+ PUAddPopupT(&ppd);
+ return;
+ }
+ }*/
+
- //MessageBox(NULL, message, caption, MB_OK | flags);
+ MessageBox(NULL, message, caption, MB_OK | flags);
}
LRESULT CSkypeProto::PopupDlgProcCall(HWND hPopup, UINT uMsg, WPARAM wParam, LPARAM lParam)