diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-13 22:52:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-13 22:52:37 +0300 |
commit | 52eb6bab527ff936d80cb45cc5f48e22c4c3ed72 (patch) | |
tree | e056d8f3de3c2efcfb356802d54f2615c811a9eb /plugins/Msg_Export/src | |
parent | 84820a7338aa363c94db86833c146e1bea872815 (diff) |
Msg_Export -> g_plugin
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-x | plugins/Msg_Export/src/options.cpp | 8 | ||||
-rwxr-xr-x | plugins/Msg_Export/src/utils.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
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);
|