diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 15:56:56 +0000 |
commit | 22f0f1c668f467a4b938d007f689991fb6da602d (patch) | |
tree | c2a02b8c4067af0b6c86a78091f14d99f681c964 /protocols/JabberG/src/jabber_xstatus.cpp | |
parent | eae36a4c2b34054432e105b81352f2b59db84b24 (diff) |
Jabber -> new helpers
git-svn-id: http://svn.miranda-ng.org/main/trunk@5309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_xstatus.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_xstatus.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp index 922030b6dd..1d39fe75c4 100644 --- a/protocols/JabberG/src/jabber_xstatus.cpp +++ b/protocols/JabberG/src/jabber_xstatus.cpp @@ -285,7 +285,7 @@ void CJabberDlgPepSimple::cbModes_OnChange(CCtrlData *) if ((m_prevSelected >= 0) && (m_modes[m_cbModes.GetItemData(m_prevSelected)].m_id >= 0)) {
TCHAR *txt = m_txtDescription.GetText();
mir_snprintf(szSetting, SIZEOF(szSetting), "PepMsg_%s", m_modes[m_cbModes.GetItemData(m_prevSelected)].m_name);
- m_proto->setTString(NULL, szSetting, txt);
+ m_proto->setTString(szSetting, txt);
mir_free(txt);
}
@@ -294,7 +294,7 @@ void CJabberDlgPepSimple::cbModes_OnChange(CCtrlData *) mir_snprintf(szSetting, SIZEOF(szSetting), "PepMsg_%s", m_modes[m_cbModes.GetItemData(m_prevSelected)].m_name);
DBVARIANT dbv;
- if ( !m_proto->getTString(NULL, szSetting, &dbv)) {
+ if ( !m_proto->getTString(szSetting, &dbv)) {
m_txtDescription.SetText(dbv.ptszVal);
db_free(&dbv);
}
@@ -731,14 +731,14 @@ void CPepMood::SetMood(HANDLE hContact, const TCHAR *szMood, const TCHAR *szText if (szText)
m_proto->setTString(hContact, DBSETTING_XSTATUSMSG, szText);
else
- m_proto->JDeleteSetting(hContact, DBSETTING_XSTATUSMSG);
+ m_proto->delSetting(hContact, DBSETTING_XSTATUSMSG);
m_proto->WriteAdvStatus(hContact, ADVSTATUS_MOOD, szMood, g_MoodIcons.GetIcolibName(g_arrMoods[mood].szTag), TranslateTS(g_arrMoods[mood].szName), szText);
}
else {
- m_proto->JDeleteSetting(hContact, DBSETTING_XSTATUSID);
- m_proto->JDeleteSetting(hContact, DBSETTING_XSTATUSNAME);
- m_proto->JDeleteSetting(hContact, DBSETTING_XSTATUSMSG);
+ m_proto->delSetting(hContact, DBSETTING_XSTATUSID);
+ m_proto->delSetting(hContact, DBSETTING_XSTATUSNAME);
+ m_proto->delSetting(hContact, DBSETTING_XSTATUSMSG);
m_proto->ResetAdvStatus(hContact, ADVSTATUS_MOOD);
}
@@ -1211,7 +1211,7 @@ BOOL CJabberProto::SendPepTune(TCHAR* szArtist, TCHAR* szLength, TCHAR* szSource void CJabberProto::SetContactTune(HANDLE hContact, LPCTSTR szArtist, LPCTSTR szLength, LPCTSTR szSource, LPCTSTR szTitle, LPCTSTR szTrack)
{
if ( !szArtist && !szTitle) {
- JDeleteSetting(hContact, "ListeningTo");
+ delSetting(hContact, "ListeningTo");
ResetAdvStatus(hContact, ADVSTATUS_TUNE);
return;
}
@@ -1269,7 +1269,7 @@ INT_PTR __cdecl CJabberProto::OnSetListeningTo(WPARAM, LPARAM lParam) LISTENINGTOINFO *cm = (LISTENINGTOINFO *)lParam;
if ( !cm || cm->cbSize != sizeof(LISTENINGTOINFO)) {
SendPepTune(NULL, NULL, NULL, NULL, NULL, NULL);
- JDeleteSetting(NULL, "ListeningTo");
+ delSetting("ListeningTo");
}
else {
TCHAR *szArtist = NULL, *szLength = NULL, *szSource = NULL;
|