From 0317b5627c7eff381a7d5595544ff52a83bdd454 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 16 Jun 2013 18:54:00 +0000 Subject: ProtoBroadcastAck for ICQ git-svn-id: http://svn.miranda-ng.org/main/trunk@4990 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/utilities.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'protocols/IcqOscarJ/src/utilities.cpp') diff --git a/protocols/IcqOscarJ/src/utilities.cpp b/protocols/IcqOscarJ/src/utilities.cpp index 633e798259..593fa6408c 100644 --- a/protocols/IcqOscarJ/src/utilities.cpp +++ b/protocols/IcqOscarJ/src/utilities.cpp @@ -1067,7 +1067,7 @@ void __cdecl CIcqProto::ProtocolAckThread(icq_ack_args* pArguments) else if (pArguments->nAckResult == ACKRESULT_FAILED) NetLog_Server("Message delivery failed"); - BroadcastAck(pArguments->hContact, pArguments->nAckType, pArguments->nAckResult, pArguments->hSequence, pArguments->pszMessage); + ProtoBroadcastAck(pArguments->hContact, pArguments->nAckType, pArguments->nAckResult, pArguments->hSequence, pArguments->pszMessage); SAFE_FREE((void**)(char **)&pArguments->pszMessage); SAFE_FREE((void**)&pArguments); @@ -1090,7 +1090,7 @@ void CIcqProto::SetCurrentStatus(int nStatus) int nOldStatus = m_iStatus; m_iStatus = nStatus; - BroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)nOldStatus, nStatus); + ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)nOldStatus, nStatus); } @@ -1794,20 +1794,6 @@ int CIcqProto::NetLog_Uni(BOOL bDC, const char *fmt,...) return CallService(MS_NETLIB_LOG,(WPARAM)hNetlib,(LPARAM)szText); } -int CIcqProto::BroadcastAck(HANDLE hContact,int type,int result,HANDLE hProcess,LPARAM lParam) -{ - ACKDATA ack={0}; - - ack.cbSize = sizeof(ACKDATA); - ack.szModule = m_szModuleName; - ack.hContact = hContact; - ack.type = type; - ack.result = result; - ack.hProcess = hProcess; - ack.lParam = lParam; - return CallService(MS_PROTO_BROADCASTACK,0,(LPARAM)&ack); -} - char* __fastcall ICQTranslateUtf(const char *src) { // this takes UTF-8 strings only!!! char *szRes = NULL; -- cgit v1.2.3