diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-04 19:24:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-04 19:24:57 +0000 |
commit | dfe76cf65e6f20d5f9c92982a241ffecf6bb3405 (patch) | |
tree | 6cd07d1f07afc71ddbac99a2194fec6087310cf9 /protocols/Tox/src/tox_transfer.h | |
parent | 2d0cbc078494bbf8f70e68fe629710bbaa30b2e8 (diff) |
Tox:
- added delay for resending chunk of file
- updated tox core
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12003 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_transfer.h')
-rw-r--r-- | protocols/Tox/src/tox_transfer.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/protocols/Tox/src/tox_transfer.h b/protocols/Tox/src/tox_transfer.h index 13120756fb..080d8a2289 100644 --- a/protocols/Tox/src/tox_transfer.h +++ b/protocols/Tox/src/tox_transfer.h @@ -47,45 +47,6 @@ struct FileTransferParam return hFile != NULL;
}
- /*void Start(Tox *tox)
- {
- status = STARTED;
- if (tox_file_send_control(tox, friendNumber, GetDirection(), fileNumber, TOX_FILECONTROL_ACCEPT, NULL, 0))
- {
- Fail(tox);
- }
- }
-
- void Resume(Tox *tox)
- {
- status = STARTED;
- if (tox_file_send_control(tox, friendNumber, GetDirection(), fileNumber, TOX_FILECONTROL_RESUME_BROKEN, (uint8_t*)&pfts.currentFileProgress, sizeof(pfts.currentFileProgress)) == -1)
- {
- Fail(tox);
- }
- }
-
- int Fail(Tox *tox)
- {
- status = FAILED;
- return tox_file_send_control(tox, friendNumber, GetDirection(), fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
- }
-
- int Cancel(Tox *tox)
- {
- status = CANCELED;
- return tox_file_send_control(tox, friendNumber, GetDirection(), fileNumber, TOX_FILECONTROL_KILL, NULL, 0);
- }
-
- void Finish(Tox *tox)
- {
- status = FINISHED;
- if (tox_file_send_control(tox, friendNumber, GetDirection(), fileNumber, TOX_FILECONTROL_FINISHED, NULL, 0))
- {
- Fail(tox);
- }
- }*/
-
void Rename(const TCHAR* fileName)
{
pfts.ptszFiles[0] = replaceStrT(pfts.tszCurrentFile, fileName);
|