From e4082ab57edbb790f721fed477532f93ff1986b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Apr 2020 13:46:19 +0300 Subject: database: - namespace DB declared for commonly used database classes; - stubs for database event cursors; - code cleaning --- plugins/FTPFileYM/src/mir_db.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'plugins/FTPFileYM/src') diff --git a/plugins/FTPFileYM/src/mir_db.h b/plugins/FTPFileYM/src/mir_db.h index bc92bd1e15..7293c145ff 100644 --- a/plugins/FTPFileYM/src/mir_db.h +++ b/plugins/FTPFileYM/src/mir_db.h @@ -20,19 +20,18 @@ along with this program. If not, see . #include "stdafx.h" -class DB +namespace DB { -public: - static int setByteF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); - static int setWordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); - static int setDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); + int setByteF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); + int setWordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); + int setDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iValue); - static int setAStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, char *szValue); - static int setStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, wchar_t *stzValue); + int setAStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, char *szValue); + int setStringF(MCONTACT hContact, char *szModule, char *szSetting, int id, wchar_t *stzValue); - static int getByteF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); - static int getWordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); - static int getDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); + int getByteF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); + int getWordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); + int getDwordF(MCONTACT hContact, char *szModule, char *szSetting, int id, int iErrorValue = -1); - static int deleteSettingF(MCONTACT hContact, char *szModule, char *szSetting, int id); + int deleteSettingF(MCONTACT hContact, char *szModule, char *szSetting, int id); }; -- cgit v1.2.3