From 4ab93d52285bf072cea05ceac5333a1587c9980b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 7 May 2024 12:55:09 +0300 Subject: ME_DB_EVENT_SETJSON - separate event fired when only the JSON part of event is changed --- include/m_database.h | 10 ++++++++++ include/m_db_int.h | 1 + 2 files changed, 11 insertions(+) (limited to 'include') diff --git a/include/m_database.h b/include/m_database.h index 5dd0a2859a..03e035623d 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -575,6 +575,16 @@ EXTERN_C MIR_APP_DLL(HICON) DbEvent_GetIcon(DBEVENTINFO *dbei, int flags); #define ME_DB_EVENT_EDITED "DB/Event/Edited" +///////////////////////////////////////////////////////////////////////////////////////// +// DB/Event/SetJson event +// Called when the JSON part of an existing event was changed +// wParam = (MCONTACT)hContact +// lParam = (LPARAM)(HANDLE)hDbEvent +// hDbEvent is a valid handle to the event. hContact is a valid handle to the +// contact to which hDbEvent refers. + +#define ME_DB_EVENT_SETJSON "DB/Event/SetJson" + ///////////////////////////////////////////////////////////////////////////////////////// // DB/Event/FilterAdd (NOTE: Added during 0.3.3+ development!) // Called **before** a new event is made of a DBEVENTINFO structure, this diff --git a/include/m_db_int.h b/include/m_db_int.h index 51f494049a..75302a945c 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -384,6 +384,7 @@ EXTERN_C MIR_APP_EXPORT HANDLE g_hevEventAdded, // ME_DB_EVENT_ADDED g_hevEventEdited, // ME_DB_EVENT_EDITED g_hevEventDeleted, // ME_DB_EVENT_DELETED + g_hevEventSetJson, // ME_DB_EVENT_SETJSON g_hevEventDelivered, // ME_DB_EVENT_DELIVERED g_hevEventFiltered; // ME_DB_EVENT_FILTER_ADD -- cgit v1.2.3