From 68aeed54fb2c7c7d10c192a99c25d0a0c870b017 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 29 Apr 2013 05:05:06 +0000 Subject: - added new db event type - added new icons - fixed few bugs git-svn-id: http://svn.miranda-ng.org/main/trunk@4565 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'protocols/Skype/src/skype_proto.cpp') diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp index 9b5dd72dd3..ba2caabe44 100644 --- a/protocols/Skype/src/skype_proto.cpp +++ b/protocols/Skype/src/skype_proto.cpp @@ -11,12 +11,17 @@ CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) : this->SetAllContactStatus(ID_STATUS_OFFLINE); DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) }; - dbEventType.module = m_szModuleName; - dbEventType.eventType = SKYPE_DB_EVENT_TYPE_CALL; - dbEventType.descr = "Skype call"; + dbEventType.module = this->m_szModuleName; + dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW; + + dbEventType.eventType = SKYPE_DB_EVENT_TYPE_EMOTE; + dbEventType.descr = "Skype emote"; ::CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); - this->HookEvent(ME_MSG_PRECREATEEVENT, &CSkypeProto::OnMessagePreCreate); + dbEventType.eventType = SKYPE_DB_EVENT_TYPE_CALL; + dbEventType.descr = "Skype call"; + dbEventType.eventIcon = CSkypeProto::GetIconHandle("call"); + ::CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); this->InitInstanceServiceList(); } -- cgit v1.2.3