summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-31 22:35:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-31 22:35:54 +0300
commit36d0c8d1d781d80e4bee71208d72ea5a1f8e1fec (patch)
tree30aa8f85dda26de517982e3b5c3e6c6d3d18056a /include
parentc6b493f65d7d768782852b6379c663161b63695f (diff)
we import slower, but more securely (flush database time to time)
Diffstat (limited to 'include')
-rw-r--r--include/m_db_int.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h
index 198f21a030..71adc82826 100644
--- a/include/m_db_int.h
+++ b/include/m_db_int.h
@@ -155,11 +155,11 @@ interface MIR_APP_EXPORT MIDatabase
STDMETHOD_(BOOL, Compact)(void) PURE;
STDMETHOD_(BOOL, Backup)(LPCWSTR) PURE;
-
+ STDMETHOD_(BOOL, Flush)(void) PURE;
+
STDMETHOD_(MIDatabaseChecker*, GetChecker)(void) PURE;
STDMETHOD_(DATABASELINK*, GetDriver)(void) PURE;
-
STDMETHOD_(MEVENT, GetEventById)(LPCSTR szModule, LPCSTR szId) PURE;
STDMETHOD_(DB::EventCursor*, EventCursor)(MCONTACT hContact, MEVENT hDbEvent) PURE;
@@ -228,6 +228,7 @@ public:
STDMETHODIMP_(BOOL) Compact(void) override;
STDMETHODIMP_(BOOL) Backup(LPCWSTR) override;
+ STDMETHODIMP_(BOOL) Flush(void) override;
STDMETHODIMP_(MIDatabaseChecker*) GetChecker(void) override;