diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-07 12:55:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-07 12:55:09 +0300 |
commit | 4ab93d52285bf072cea05ceac5333a1587c9980b (patch) | |
tree | f2a81f667f407a553eefed75a6490abe9b17a731 /include | |
parent | 3cac3160302a2936d04c87c1f7f03fc400449778 (diff) |
ME_DB_EVENT_SETJSON - separate event fired when only the JSON part of event is changed
Diffstat (limited to 'include')
-rw-r--r-- | include/m_database.h | 10 | ||||
-rw-r--r-- | include/m_db_int.h | 1 |
2 files changed, 11 insertions, 0 deletions
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 @@ -576,6 +576,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
// hook is not SAFE unless you know what you're doing with it, the arguments
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
|