diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-04-04 14:27:04 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-04-04 14:27:04 +0000 |
commit | c7181615b01d42717df5a4cc557995fe8970e555 (patch) | |
tree | 829b619062f5630b15701a5faaaf16019b893ae6 /plugins/!NotAdopted/WinPopup/src/user_info.cpp | |
parent | e08dd78ccf05f9d5d768e5436fcfc5e8126356fe (diff) |
Partial adopttion of VypressChat and WinPopup plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@8849 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/WinPopup/src/user_info.cpp')
-rw-r--r-- | plugins/!NotAdopted/WinPopup/src/user_info.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/!NotAdopted/WinPopup/src/user_info.cpp b/plugins/!NotAdopted/WinPopup/src/user_info.cpp index 3f47e8cb80..02f9c6bae7 100644 --- a/plugins/!NotAdopted/WinPopup/src/user_info.cpp +++ b/plugins/!NotAdopted/WinPopup/src/user_info.cpp @@ -79,7 +79,7 @@ static void FillTreeThread (LPVOID param) if ( WNetGetResourceInformation( &nr, buf, &buf_size, &sys ) == NO_ERROR )
{
ftd->about = buf->lpComment;
- DBWriteContactSettingTString( fttd->hContact, modname,
+ db_set_ts( fttd->hContact, modname,
"About", ftd->about );
}
@@ -195,7 +195,7 @@ static INT_PTR CALLBACK DlgProcUserInfo (HWND hwndDlg, UINT Msg, WPARAM wParam, case PSN_INFOCHANGED:
{
// Ôëàã "Always Online"
- BOOL b = DBGetContactSettingByte ( data->hContact, modname,
+ BOOL b = db_get_b ( data->hContact, modname,
"AlwaysOnline", FALSE );
CheckDlgButton (hwndDlg, IDC_ONLINE_CHECK,
(UINT)( b ? BST_CHECKED : BST_UNCHECKED ) );
@@ -247,9 +247,9 @@ static INT_PTR CALLBACK DlgProcUserInfo (HWND hwndDlg, UINT Msg, WPARAM wParam, {
BOOL f_now = (IsDlgButtonChecked (hwndDlg, IDC_ONLINE_CHECK) ==
BST_CHECKED) ? TRUE : FALSE;
- BOOL f_old = DBGetContactSettingByte ( data->hContact, modname,
+ BOOL f_old = db_get_b ( data->hContact, modname,
"AlwaysOnline", FALSE );
- DBWriteContactSettingByte (data->hContact, modname,
+ db_set_b (data->hContact, modname,
"AlwaysOnline", (BYTE)( f_now ? TRUE : FALSE ) );
if ( ! f_old && f_now )
SetContactStatus( data->hContact, ID_STATUS_ONLINE, true );
@@ -278,7 +278,7 @@ static INT_PTR CALLBACK DlgProcUserInfo (HWND hwndDlg, UINT Msg, WPARAM wParam, {
BOOL f_now = (IsDlgButtonChecked (hwndDlg, IDC_ONLINE_CHECK) ==
BST_CHECKED) ? TRUE : FALSE;
- BOOL f_old = DBGetContactSettingByte ( data->hContact, modname,
+ BOOL f_old = db_get_b ( data->hContact, modname,
"AlwaysOnline", FALSE );
if ( f_old != f_now )
|