From 74387bd41daf5c06146e4fddd7ab384616e8e8f5 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 30 Apr 2015 14:30:36 +0000 Subject: SkypeWeb: Sound on incoming call. Compilation fix. git-svn-id: http://svn.miranda-ng.org/main/trunk@13292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/res/Icons/call.ico | Bin 0 -> 5430 bytes protocols/SkypeWeb/src/skype_proto.cpp | 2 ++ protocols/SkypeWeb/src/skype_trouter.cpp | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 protocols/SkypeWeb/res/Icons/call.ico (limited to 'protocols') diff --git a/protocols/SkypeWeb/res/Icons/call.ico b/protocols/SkypeWeb/res/Icons/call.ico new file mode 100644 index 0000000000..41e984fc6b Binary files /dev/null and b/protocols/SkypeWeb/res/Icons/call.ico differ diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 1e2bc97e4b..37ca1c6e2f 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -57,6 +57,8 @@ PROTO(protoName, userName), password(NULL) dbEventType.descr = Translate("Incoming Call"); dbEventType.eventIcon = GetIconHandle("inc_call"); CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + + SkinAddNewSoundEx("skype_inc_call", "SkypeWeb", LPGEN("Incoming call sound")); } CSkypeProto::~CSkypeProto() diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index 06c09a72c8..039107e0fd 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -96,7 +96,10 @@ void CSkypeProto::OnTrouterEvent(JSONNODE *body, JSONNODE *headers) MCONTACT hContact = FindContact(_T2A(uid)); if (hContact != NULL) + { AddCallToDb(hContact, time(NULL), 0); + SkinPlaySound("skype_inc_call"); + } } void CSkypeProto::TRouterThread(void*) -- cgit v1.2.3