diff options
author | George Hazan <ghazan@miranda.im> | 2018-10-10 23:26:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-10-10 23:26:08 +0300 |
commit | 39681c2aa83e33d46598f8aeecd10370b04cf364 (patch) | |
tree | ee9ef3cb681b97f5d9f8e046add17b8356e9d7ad /plugins/Dbx_sqlite/src/dbevents.cpp | |
parent | 802cbbae257dca16957d9b7e028be1d0d468e097 (diff) |
stupid schema with event handles sharing via CreateEventHook eliminated
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbevents.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 0bdec1190f..0bde038173 100644 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -115,7 +115,7 @@ MEVENT CDbxSQLite::AddEvent(MCONTACT hContact, DBEVENTINFO *dbei) return 0; if (m_safetyMode) - if (NotifyEventHooks(hEventFilterAddedEvent, hNotifyContact, (LPARAM)dbei)) + if (NotifyEventHooks(g_hevEventFiltered, hNotifyContact, (LPARAM)dbei)) return 0; MEVENT hDbEvent = 0; @@ -174,7 +174,7 @@ MEVENT CDbxSQLite::AddEvent(MCONTACT hContact, DBEVENTINFO *dbei) } if (m_safetyMode) - NotifyEventHooks(hEventAddedEvent, hNotifyContact, (LPARAM)hDbEvent); + NotifyEventHooks(g_hevEventAdded, hNotifyContact, (LPARAM)hDbEvent); return hDbEvent; } @@ -207,7 +207,7 @@ BOOL CDbxSQLite::DeleteEvent(MCONTACT hContact, MEVENT hDbEvent) cc->first = cc->unread = cc->last = 0; } - NotifyEventHooks(hEventDeletedEvent, hContact, (LPARAM)hDbEvent); + NotifyEventHooks(g_hevEventDeleted, hContact, (LPARAM)hDbEvent); return 0; } @@ -239,7 +239,7 @@ BOOL CDbxSQLite::EditEvent(MCONTACT hContact, MEVENT hDbEvent, DBEVENTINFO *dbei assert(rc == SQLITE_ROW || rc == SQLITE_DONE); if (rc == SQLITE_DONE) { cc->first = cc->unread = cc->last = 0; - NotifyEventHooks(hEventEditedEvent, hContact, (LPARAM)hDbEvent); + NotifyEventHooks(g_hevEventEdited, hContact, (LPARAM)hDbEvent); } sqlite3_reset(stmt); return (rc != SQLITE_DONE); @@ -346,7 +346,7 @@ BOOL CDbxSQLite::MarkEventRead(MCONTACT hContact, MEVENT hDbEvent) cc->unread = 0; } - NotifyEventHooks(hEventMarkedRead, hContact, (LPARAM)hDbEvent); + NotifyEventHooks(g_hevMarkedRead, hContact, (LPARAM)hDbEvent); return flags; } |