diff options
author | aunsane <aunsane@gmail.com> | 2018-09-27 23:48:00 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-09-27 23:48:00 +0300 |
commit | fe0958f789d45915c317db89dce533311c79d016 (patch) | |
tree | 97849275b8df8ae9562b4f6eda722feb85959f91 /plugins/Dbx_sqlite/src/dbintf.h | |
parent | 39fdc50b018c989f22c5392aca11da5fc5a482aa (diff) |
dbx_sqlite: simple events cache
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.h')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbintf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.h b/plugins/Dbx_sqlite/src/dbintf.h index 190745d41f..4d919212ec 100644 --- a/plugins/Dbx_sqlite/src/dbintf.h +++ b/plugins/Dbx_sqlite/src/dbintf.h @@ -1,5 +1,19 @@ #pragma once +#define OWN_CACHED_CONTACT + +#include <m_db_int.h> + +struct DBCachedContact : public DBCachedContactBase +{ + uint32_t count; + MEVENT first; + MEVENT unread; + MEVENT last; + + DBCachedContact() { count = first = unread = last = 0; } +}; + struct CDbxSQLite : public MDatabaseCommon, public MZeroedObject { private: @@ -14,6 +28,8 @@ private: HANDLE hEventMarkedRead; HANDLE hSettingChangeEvent; + DBCachedContact m_system; + CDbxSQLite(sqlite3 *database); void InitContacts(); |