summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_voice.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-16 14:34:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-16 14:34:41 +0000
commit35489ce3659220b4ebd25d1b3ab0258115cf10a4 (patch)
tree611d9ebaa2f85129af43492368381c55ccbb1a5e /protocols/Tlen/src/tlen_voice.cpp
parent2611fbb22f7e186cb989f2b16133dad5215e41e1 (diff)
Tlen:
- custom base64 removed; - strict prototype verification git-svn-id: http://svn.miranda-ng.org/main/trunk@5719 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src/tlen_voice.cpp')
-rw-r--r--protocols/Tlen/src/tlen_voice.cpp17
1 files changed, 7 insertions, 10 deletions
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, "<iq to='%s'><query xmlns='voip'><voip k='1' s='1' v='1' i='51245604'/></query></iq>", ft->jid);
-// Sleep(5000);
TlenVoiceStart(ft, 2);
JabberSend(ft->proto, "<v t='%s' e='1' i='%s' v='1'/>", ft->jid, serialId);
}