summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_messages.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-30 13:11:42 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-30 13:11:42 +0000
commitea9403c8ff0b188f74f0fe2d101c4497485dbdaa (patch)
treea1a5bbf8b485dc1a440bdfc9c55402a949daab4c /protocols/SkypeWeb/src/skype_messages.cpp
parent2aa1775c7bbba890746d13aa155c77a781304f7a (diff)
SkypeWeb: Notification on incoming call.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index b5cb528aa7..26ce4c644b 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -66,6 +66,17 @@ MEVENT CSkypeProto::AddMessageToDb(MCONTACT hContact, DWORD timestamp, DWORD fla
return AddEventToDb(hContact, emoteOffset == 0 ? EVENTTYPE_MESSAGE : SKYPE_DB_EVENT_TYPE_ACTION, timestamp, flags, (DWORD)cbBlob, pBlob);
}
+MEVENT CSkypeProto::AddCallToDb(MCONTACT hContact, DWORD timestamp, DWORD flags)
+{
+ const char *message = Translate("Incoming call");
+ size_t messageLength = mir_strlen(message);
+ size_t cbBlob = messageLength;
+ PBYTE pBlob = (PBYTE)mir_alloc(cbBlob);
+ memcpy(pBlob, message, messageLength);
+
+ return AddEventToDb(hContact, SKYPE_DB_EVENT_TYPE_INCOMING_CALL, timestamp, flags, (DWORD)cbBlob, pBlob);
+}
+
/* MESSAGE RECEIVING */
// incoming message flow