From 4c8d19f8daa2f9b9692d5995226439b2001ad92f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 Feb 2014 18:13:03 +0000 Subject: low-level database access functions rewritten to MCONTACT instead of HANDLE hContact git-svn-id: http://svn.miranda-ng.org/main/trunk@8067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/modules/database/database.h') diff --git a/src/modules/database/database.h b/src/modules/database/database.h index 33121c8fcf..286c651c02 100644 --- a/src/modules/database/database.h +++ b/src/modules/database/database.h @@ -39,12 +39,14 @@ public: ~MDatabaseCache(); protected: - STDMETHODIMP_(DBCachedContact*) AddContactToCache(HANDLE hContact); - STDMETHODIMP_(DBCachedContact*) GetCachedContact(HANDLE hContact); - STDMETHODIMP_(void) FreeCachedContact(HANDLE hContact); + STDMETHODIMP_(DBCachedContact*) AddContactToCache(MCONTACT contactID); + STDMETHODIMP_(DBCachedContact*) GetCachedContact(MCONTACT contactID); + STDMETHODIMP_(DBCachedContact*) GetFirstContact(void); + STDMETHODIMP_(DBCachedContact*) GetNextContact(MCONTACT contactID); + STDMETHODIMP_(void) FreeCachedContact(MCONTACT contactID); STDMETHODIMP_(char*) InsertCachedSetting(const char *szName, int); STDMETHODIMP_(char*) GetCachedSetting(const char *szModuleName, const char *szSettingName, int, int); STDMETHODIMP_(void) SetCachedVariant(DBVARIANT *s, DBVARIANT *d); - STDMETHODIMP_(DBVARIANT*) GetCachedValuePtr(HANDLE hContact, char *szSetting, int bAllocate); + STDMETHODIMP_(DBVARIANT*) GetCachedValuePtr(MCONTACT contactID, char *szSetting, int bAllocate); }; -- cgit v1.2.3