diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-25 18:32:33 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-25 18:32:33 +0000 |
commit | 0a776a22a99c20a23763aac28209a00a36126b7b (patch) | |
tree | 57f77054ea993310d92c54448f2896d008a9800c /protocols/Tox/src/tox_events.cpp | |
parent | 9afd590f4fd860d3d023203137129c8870bb8579 (diff) |
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
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r-- | protocols/Tox/src/tox_events.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 |