summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_database.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-20 21:37:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-20 21:37:28 +0000
commit303d55bea87c9a33267f5d1b351f883b0da78ddd (patch)
tree279e0e9ba5b780155c9f81ba4a281309d4d4de88 /protocols/Skype/src/skype_database.cpp
parent61ebbb725edaec25bd3c2def9a878657d5b568b4 (diff)
Added notification about incoming skype call
git-svn-id: http://svn.miranda-ng.org/main/trunk@4493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r--protocols/Skype/src/skype_database.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp
index 8b3088b484..6ce36fbaa8 100644
--- a/protocols/Skype/src/skype_database.cpp
+++ b/protocols/Skype/src/skype_database.cpp
@@ -1,18 +1,17 @@
#include "skype_proto.h"
-HANDLE CSkypeProto::AddDataBaseEvent(HANDLE hContact, WORD type, DWORD time, DWORD flags, DWORD cbBlob, PBYTE pBlob)
+HANDLE CSkypeProto::AddDataBaseEvent(HANDLE hContact, WORD type, DWORD timestamp, DWORD flags, DWORD cbBlob, PBYTE pBlob)
{
- DBEVENTINFO dbei = {0};
-
+ DBEVENTINFO dbei = { 0 };
dbei.cbSize = sizeof(dbei);
dbei.szModule = this->m_szModuleName;
- dbei.timestamp = time;
- dbei.flags = flags;
- dbei.eventType = type;
+ dbei.timestamp = timestamp;
+ dbei.eventType = EVENTTYPE_MESSAGE;
dbei.cbBlob = cbBlob;
dbei.pBlob = pBlob;
+ dbei.flags = flags;
- return (HANDLE)CallService(MS_DB_EVENT_ADD, (WPARAM)hContact, (LPARAM)&dbei);
+ return ::db_event_add(hContact, &dbei);
}
void CSkypeProto::RaiseAuthRequestEvent(