diff options
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.h')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbintf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.h b/plugins/Dbx_sqlite/src/dbintf.h index 8a2c0f98a7..99cf1fba3f 100755 --- a/plugins/Dbx_sqlite/src/dbintf.h +++ b/plugins/Dbx_sqlite/src/dbintf.h @@ -22,6 +22,16 @@ struct DBCachedContact : public DBCachedContactBase void MarkRead(MEVENT hDbEvent); }; +struct CDbxSQLiteEventCursor : public DB::EventCursorBase +{ + CDbxSQLiteEventCursor(MCONTACT _1, DBEVENTINFO& _2, sqlite3* m_db, bool reverse = false); + ~CDbxSQLiteEventCursor() override; + MEVENT FetchNext() override; +private: + sqlite3* m_db; + sqlite3_stmt* cursor; +}; + struct CDbxSQLite : public MDatabaseCommon, public MZeroedObject { private: @@ -91,4 +101,7 @@ public: STDMETHODIMP_(BOOL) Compact() override; STDMETHODIMP_(BOOL) Backup(LPCWSTR) override; + + STDMETHODIMP_(DB::EventCursor*) EventCursor(MCONTACT hContact, DBEVENTINFO& dbei) override; + STDMETHODIMP_(DB::EventCursor*) EventCursorRev(MCONTACT hContact, DBEVENTINFO& dbei) override; }; |