diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-09 12:51:17 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-09 12:51:17 +0000 |
commit | eff5259d6dac303fafa0e661a181428680197584 (patch) | |
tree | 73a89e1d6636b2b154a9e7f24c98a60ed27fa2d6 /plugins/MessageState/src/global.h | |
parent | 2ce8833450aa05cdc598abd2f7ca1b68afa3ae5d (diff) |
MessageState: code optimization; leaks fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15314 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/global.h')
-rw-r--r-- | plugins/MessageState/src/global.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/MessageState/src/global.h b/plugins/MessageState/src/global.h index f9927d77d3..5734fba61d 100644 --- a/plugins/MessageState/src/global.h +++ b/plugins/MessageState/src/global.h @@ -22,6 +22,7 @@ enum SRMM_ICON_TYPE };
#define FLAG_CONTAINS(x,y) ((x & y) == y)
+
#define DBKEY_MESSAGE_READ_TIME "LastMsgReadTime"
#define DBKEY_MESSAGE_READ_TIME_TYPE "LastMsgReadTimeType"
@@ -29,10 +30,14 @@ __forceinline bool CheckProtoSupport(const char *szProto) { return ((szProto != NULL) ? FLAG_CONTAINS(CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0), PF4_READNOTIFY) : false);
}
+void InitServices();
+void DestroyServices();
+INT_PTR UpdateService(WPARAM, LPARAM);
+
+int IconsUpdate(WPARAM hContact, LONGLONG readtime);
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();
|