summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-27 20:23:20 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-27 20:23:20 +0300
commitd18fdf58c517c957809e9ec0b8044a05984de7c6 (patch)
tree795967aee27142f012f47e739b1bbb31c53b7450 /include
parentabc610a264a0a9c03effe579283c7d4c4fdf08b5 (diff)
fixes #4140 (NewStory: удаление отдельных сообщений)
Diffstat (limited to 'include')
-rw-r--r--include/m_database.h2
-rw-r--r--include/m_protoint.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/m_database.h b/include/m_database.h
index 3533980641..7f9d1600b1 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -296,7 +296,7 @@ EXTERN_C MIR_CORE_DLL(int) db_event_count(MCONTACT hContact);
// Returns 0 on success, or nonzero if hDbEvent was invalid
// Triggers a db/event/deleted event just *before* the event is deleted
-EXTERN_C MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent, bool bFromServer = false);
+EXTERN_C MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent, int flags = 0);
// Edits an event in the database
// Returns 0 on success, or nonzero on error
diff --git a/include/m_protoint.h b/include/m_protoint.h
index 0bf9f73a62..4f34c94be8 100644
--- a/include/m_protoint.h
+++ b/include/m_protoint.h
@@ -267,7 +267,8 @@ public:
virtual MWindow OnCreateAccMgrUI(MWindow hwndParent);
// called when an event is removed from the database
- virtual void OnEventDeleted(MCONTACT, MEVENT);
+ // flags is a collection of CDF_* constants
+ virtual void OnEventDeleted(MCONTACT, MEVENT, int flags);
// called when an event is altered in database
virtual void OnEventEdited(MCONTACT, MEVENT, const DBEVENTINFO &dbei);