summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-30 14:30:36 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-30 14:30:36 +0000
commit74387bd41daf5c06146e4fddd7ab384616e8e8f5 (patch)
tree4871a1b93331009580652461b954f0632e2d12cd /protocols
parentfd0f45cfb3b386c317270f439eb7c4f0f1eefdc4 (diff)
SkypeWeb: Sound on incoming call. Compilation fix.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/res/Icons/call.icobin0 -> 5430 bytes
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp2
-rw-r--r--protocols/SkypeWeb/src/skype_trouter.cpp3
3 files changed, 5 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/res/Icons/call.ico b/protocols/SkypeWeb/res/Icons/call.ico
new file mode 100644
index 0000000000..41e984fc6b
--- /dev/null
+++ b/protocols/SkypeWeb/res/Icons/call.ico
Binary files 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<CSkypeProto>(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*)