From ffed014ccd5370a5073594d55dd0dc88080e0b3d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 18 Jan 2015 18:55:32 +0000 Subject: contacts cache details to be completely hidden from the outside world git-svn-id: http://svn.miranda-ng.org/main/trunk@11873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbintf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'plugins/Dbx_mdb/src/dbintf.h') diff --git a/plugins/Dbx_mdb/src/dbintf.h b/plugins/Dbx_mdb/src/dbintf.h index cf9600eadf..ea3d2feb0f 100644 --- a/plugins/Dbx_mdb/src/dbintf.h +++ b/plugins/Dbx_mdb/src/dbintf.h @@ -21,6 +21,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define OWN_CACHED_CONTACT + #include /* tree diagram @@ -73,6 +75,8 @@ struct DBContact { DWORD signature; DWORD eventCount; // number of events in the chain for this contact + DWORD tsFirstUnread; + DWORD dwFirstUnread; }; #define DBMODULENAME_SIGNATURE 0x4DDECADEu @@ -102,6 +106,13 @@ struct DBEvent #include +struct DBCachedContact : public DBCachedContactBase +{ + DWORD dwEventCount; + DWORD tsFirstUnread; + DWORD dwFirstUnread; +}; + struct CDbxMdb : public MIDatabase, public MIDatabaseChecker, public MZeroedObject { CDbxMdb(const TCHAR *tszFileName, int mode); @@ -126,7 +137,7 @@ struct CDbxMdb : public MIDatabase, public MIDatabaseChecker, public MZeroedObje __forceinline bool usesPassword() const { return m_bUsesPassword; } public: - STDMETHODIMP_(void) SetCacheSafetyMode(BOOL); + STDMETHODIMP_(void) SetCacheSafetyMode(BOOL); STDMETHODIMP_(LONG) GetContactCount(void); STDMETHODIMP_(MCONTACT) FindFirstContact(const char *szProto = NULL); @@ -134,6 +145,7 @@ public: STDMETHODIMP_(LONG) DeleteContact(MCONTACT contactID); STDMETHODIMP_(MCONTACT) AddContact(void); STDMETHODIMP_(BOOL) IsDbContact(MCONTACT contactID); + STDMETHODIMP_(LONG) GetContactSize(void); STDMETHODIMP_(LONG) GetEventCount(MCONTACT contactID); STDMETHODIMP_(MEVENT) AddEvent(MCONTACT contactID, DBEVENTINFO *dbe); -- cgit v1.2.3