From 35489ce3659220b4ebd25d1b3ab0258115cf10a4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Aug 2013 14:34:41 +0000 Subject: Tlen: - custom base64 removed; - strict prototype verification git-svn-id: http://svn.miranda-ng.org/main/trunk@5719 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_voice.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'protocols/Tlen/src/tlen_voice.cpp') diff --git a/protocols/Tlen/src/tlen_voice.cpp b/protocols/Tlen/src/tlen_voice.cpp index ccf735ead5..2c81755c6d 100644 --- a/protocols/Tlen/src/tlen_voice.cpp +++ b/protocols/Tlen/src/tlen_voice.cpp @@ -697,26 +697,23 @@ int TlenVoiceCancelAll(TlenProtocol *proto) return 0; } -INT_PTR TlenVoiceContactMenuHandleVoice(void *ptr, LPARAM wParam, LPARAM lParam) +int TlenProtocol::VoiceContactMenuHandleVoice(WPARAM wParam, LPARAM lParam) { HANDLE hContact; DBVARIANT dbv; JABBER_LIST_ITEM *item; TLEN_FILE_TRANSFER *ft; - TlenProtocol *proto =(TlenProtocol *)ptr; - if (!proto->isOnline) { + if (!isOnline) return 1; - } + if ((hContact=(HANDLE) wParam) != NULL) { - if (!db_get(hContact, proto->m_szModuleName, "jid", &dbv)) { + if (!db_get(hContact, m_szModuleName, "jid", &dbv)) { char serialId[32]; - mir_snprintf(serialId, SIZEOF(serialId), "%d", JabberSerialNext(proto)); - if ((item = JabberListAdd(proto, LIST_VOICE, serialId)) != NULL) { - ft = TlenFileCreateFT(proto, dbv.pszVal); + mir_snprintf(serialId, SIZEOF(serialId), "%d", JabberSerialNext(this)); + if ((item = JabberListAdd(this, LIST_VOICE, serialId)) != NULL) { + ft = TlenFileCreateFT(this, dbv.pszVal); ft->iqId = mir_strdup(serialId); item->ft = ft; -// JabberSend(ft->proto, "", ft->jid); -// Sleep(5000); TlenVoiceStart(ft, 2); JabberSend(ft->proto, "", ft->jid, serialId); } -- cgit v1.2.3