From 7ff2f6455e4461af8a2735fee591a3114fea1903 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 5 Sep 2015 18:48:33 +0000 Subject: MessageState: clist extra icons feature git-svn-id: http://svn.miranda-ng.org/main/trunk@15279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MessageState/src/messagestate.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/MessageState/src/messagestate.cpp') diff --git a/plugins/MessageState/src/messagestate.cpp b/plugins/MessageState/src/messagestate.cpp index 57dd44824e..1176fd7c3c 100644 --- a/plugins/MessageState/src/messagestate.cpp +++ b/plugins/MessageState/src/messagestate.cpp @@ -12,11 +12,7 @@ LONGLONG GetLastSentMessageTime(MCONTACT hContact) return -1; } -__forceinline bool CheckProtoSupport(const char *szProto) -{ return ((szProto != NULL) ? FLAG_CONTAINS(CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0), PF4_READNOTIFY) : false); -} - -void SetSRMMIcon(MCONTACT hContact, SRMM_ICON_TYPE type, time_t time = 0) +void SetSRMMIcon(MCONTACT hContact, SRMM_ICON_TYPE type, time_t time) { if (hContact && arMonitoredWindows.getIndex((HANDLE)hContact) != -1) { @@ -144,6 +140,7 @@ INT_PTR UpdateService(WPARAM hContact, LPARAM lParam) db_set_dw(hContact, MODULENAME, DBKEY_MESSAGE_READ_TIME, mrd->dw_lastTime); db_set_dw(hContact, MODULENAME, DBKEY_MESSAGE_READ_TIME_TYPE, mrd->iTimeType); IconsUpdate(hContact, mrd->dw_lastTime); + ExtraIconsApply(hContact, 0); } return 0; } @@ -153,7 +150,7 @@ int OnModulesLoaded(WPARAM, LPARAM) HookEvent(ME_MSG_WINDOWEVENT, OnSrmmWindowEvent); HookEvent(ME_PROTO_ACK, OnProtoAck); HookEvent(ME_DB_EVENT_FILTER_ADD, OnEventFilterAdd); - + // IcoLib support for (size_t i = 0; i < _countof(Icons); i++) Icon_Register(g_hInst, MODULENAME, &Icons[i], 1); @@ -164,5 +161,7 @@ int OnModulesLoaded(WPARAM, LPARAM) sid.dwId = 1; Srmm_AddIcon(&sid); + InitClistExtraIcon(); + return 0; } \ No newline at end of file -- cgit v1.2.3