diff options
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 |