summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src/global.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 18:48:33 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 18:48:33 +0000
commit7ff2f6455e4461af8a2735fee591a3114fea1903 (patch)
tree56928dd5251b448a8096ee6c6f381e1db5b832c7 /plugins/MessageState/src/global.h
parent1815e1619cdcbb3957183ab4b8fc52157d5e9111 (diff)
MessageState: clist extra icons feature
git-svn-id: http://svn.miranda-ng.org/main/trunk@15279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/global.h')
-rw-r--r--plugins/MessageState/src/global.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/MessageState/src/global.h b/plugins/MessageState/src/global.h
index 463142be2f..f9927d77d3 100644
--- a/plugins/MessageState/src/global.h
+++ b/plugins/MessageState/src/global.h
@@ -8,7 +8,8 @@ static IconItem Icons[] =
{ LPGEN("Unread message icon"), "unread_icon", IDI_UNREAD },
{ LPGEN("Read message icon"), "read_icon", IDI_READ },
{ LPGEN("Failed sending icon"), "fail_icon", IDI_FAIL },
- { LPGEN("Sending message icon"), "nosent_icon", IDI_NOSENT }
+ { LPGEN("Sending message icon"), "nosent_icon", IDI_NOSENT },
+ { LPGEN("Unread clist extra icon"), "clist_unread_icon", IDI_EXTRA },
};
enum SRMM_ICON_TYPE
@@ -24,8 +25,16 @@ enum SRMM_ICON_TYPE
#define DBKEY_MESSAGE_READ_TIME "LastMsgReadTime"
#define DBKEY_MESSAGE_READ_TIME_TYPE "LastMsgReadTimeType"
+__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);
+LONGLONG GetLastSentMessageTime(MCONTACT hContact);
int OnModulesLoaded(WPARAM, LPARAM);
INT_PTR UpdateService(WPARAM, LPARAM);
-
+bool HasUnread(MCONTACT hContact);
+int ExtraIconsApply(WPARAM hContact, LPARAM);
+void InitClistExtraIcon();
#endif //_GLOBAL_H_ \ No newline at end of file