From d5d50b471277d5d69f59a8f29bf87201149ce191 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 9 Jul 2013 22:02:18 +0000 Subject: applied protocol helpers git-svn-id: http://svn.miranda-ng.org/main/trunk@5305 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_icolib.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/JabberG/src/jabber_icolib.cpp') diff --git a/protocols/JabberG/src/jabber_icolib.cpp b/protocols/JabberG/src/jabber_icolib.cpp index ed7f03efab..c30a57cfe4 100644 --- a/protocols/JabberG/src/jabber_icolib.cpp +++ b/protocols/JabberG/src/jabber_icolib.cpp @@ -396,18 +396,18 @@ INT_PTR __cdecl CJabberProto::JGetAdvancedStatusIcon(WPARAM wParam, LPARAM) if ( !hContact) return -1; - if ( !JGetByte(hContact, "IsTransported", 0)) + if ( !getByte(hContact, "IsTransported", 0)) return -1; DBVARIANT dbv; - if (JGetStringT(hContact, "Transport", &dbv)) + if (getTString(hContact, "Transport", &dbv)) return -1; int iID = GetTransportProtoID(dbv.ptszVal); db_free(&dbv); if (iID >= 0) { WORD Status = ID_STATUS_OFFLINE; - Status = JGetWord(hContact, "Status", ID_STATUS_OFFLINE); + Status = getWord(hContact, "Status", ID_STATUS_OFFLINE); if (Status < ID_STATUS_OFFLINE) Status = ID_STATUS_OFFLINE; else if (Status > ID_STATUS_INVISIBLE) @@ -449,12 +449,12 @@ BOOL CJabberProto::DBCheckIsTransportedContact(const TCHAR *jid, HANDLE hContact if (m_lstTransports.getIndex(domain) == -1) { if (isAgent) { m_lstTransports.insert(mir_tstrdup(domain)); - JSetByte(hContact, "IsTransport", 1); + setByte(hContact, "IsTransport", 1); } } if (isTransported) { - JSetStringT(hContact, "Transport", domain); - JSetByte(hContact, "IsTransported", 1); + setTString(hContact, "Transport", domain); + setByte(hContact, "IsTransported", 1); } return isTransported; } @@ -463,7 +463,7 @@ void CJabberProto::CheckAllContactsAreTransported() { for (HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) { DBVARIANT dbv; - if ( !JGetStringT(hContact, "jid", &dbv)) { + if ( !getTString(hContact, "jid", &dbv)) { DBCheckIsTransportedContact(dbv.ptszVal, hContact); db_free(&dbv); } -- cgit v1.2.3