From 52eb6bab527ff936d80cb45cc5f48e22c4c3ed72 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Nov 2018 22:52:37 +0300 Subject: Msg_Export -> g_plugin --- plugins/Msg_Export/src/options.cpp | 8 ++++---- plugins/Msg_Export/src/utils.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Msg_Export') diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp index 0215b02ff4..5d61ced0a1 100755 --- a/plugins/Msg_Export/src/options.cpp +++ b/plugins/Msg_Export/src/options.cpp @@ -530,14 +530,14 @@ public: if (listUsers.GetItem(&sItem)) { MCONTACT hUser = (MCONTACT)sItem.lParam; if (mir_wstrlen(szTemp) > 0) - db_set_ws(hUser, MODULENAME, "FileName", szTemp); + g_plugin.setWString(hUser, "FileName", szTemp); else - db_unset(hUser, MODULENAME, "FileName"); + g_plugin.delSetting(hUser, "FileName"); if (listUsers.GetCheckState(nCur)) - db_unset(hUser, MODULENAME, "EnableLog"); + g_plugin.delSetting(hUser, "EnableLog"); else - db_set_b(hUser, MODULENAME, "EnableLog", 0); + g_plugin.setByte(hUser, "EnableLog", 0); } } UpdateFileToColWidth(); diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 3ae4ac9ec4..5f7be44f0a 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -397,7 +397,7 @@ wstring GetFilePathFromUser(MCONTACT hContact) } // Store the Filename used so that we can check if it changes. - db_set_ws(hContact, MODULENAME, "PrevFileName", sNoDBPath.c_str()); + g_plugin.setWString(hContact, "PrevFileName", sNoDBPath.c_str()); } return sFilePath; @@ -1011,7 +1011,7 @@ HANDLE openCreateFile(wstring sFilePath) bool bIsExportEnabled(MCONTACT hContact) { - if (!db_get_b(hContact, MODULENAME, "EnableLog", 1)) + if (!g_plugin.getByte(hContact, "EnableLog", 1)) return false; const char *szProto = GetContactProto(hContact); -- cgit v1.2.3