diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-06-16 18:54:00 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-06-16 18:54:00 +0000 |
commit | 0317b5627c7eff381a7d5595544ff52a83bdd454 (patch) | |
tree | 0d465ef2953bc8835436e1f9cf66172f7909bc8f /protocols/IcqOscarJ/src/utilities.cpp | |
parent | 05493ccea469299b0d62a1f356fbbaceedb32e06 (diff) |
ProtoBroadcastAck for ICQ
git-svn-id: http://svn.miranda-ng.org/main/trunk@4990 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/utilities.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/utilities.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
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;
|