From 0a776a22a99c20a23763aac28209a00a36126b7b Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 25 Aug 2014 18:32:33 +0000 Subject: Tox: - updated tox core - fixdd contacts adding - some code for file sending git-svn-id: http://svn.miranda-ng.org/main/trunk@10320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_events.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'protocols/Tox/src/tox_events.cpp') diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index 39824f1038..e55eba54eb 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -218,4 +218,16 @@ void CToxProto::OnReadReceipt(Tox *tox, int32_t number, uint32_t receipt, void * ACKRESULT_SUCCESS, (HANDLE)receipt, 0); } +} + +void CToxProto::OnFileRequest(Tox *tox, int32_t number, uint8_t isSend, uint8_t fileNumber, uint8_t type, const uint8_t *data, uint16_t length, void *arg) +{ + CToxProto *proto = (CToxProto*)arg; + MCONTACT hContact = proto->FindContact(number); + if (hContact) + { + if (isSend && type == TOX_FILECONTROL_ACCEPT) + { + } + } } \ No newline at end of file -- cgit v1.2.3