summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-09-06 22:08:20 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-09-06 22:08:20 +0000
commit1774c615f4c188b113fb32e328b21669f266766b (patch)
tree04df8fffcf235aad08ba3fe49ade1c98826d11b9 /protocols/Tox/src/tox_proto.h
parenteb61560d6fa9ab5e7bf895805dcedfd7870f482d (diff)
Tox:
- fixed file receiving - temporary disabled file sending - updated tox core git-svn-id: http://svn.miranda-ng.org/main/trunk@10383 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r--protocols/Tox/src/tox_proto.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h
index c4dc2c3c8d..bd1bf4078f 100644
--- a/protocols/Tox/src/tox_proto.h
+++ b/protocols/Tox/src/tox_proto.h
@@ -22,13 +22,22 @@ struct FileTransferParam
pfts.tszWorkingDir = NULL;
}
+ void ChangeFileName(const TCHAR* fileName)
+ {
+ pfts.ptszFiles[0] = replaceStrT(pfts.tszCurrentFile, fileName);
+ }
+
+ uint8_t GetTransferStatus() const
+ {
+ return pfts.flags & PFTS_SENDING ? 0 : 1;
+ }
+
~FileTransferParam()
{
if (pfts.tszWorkingDir != NULL)
{
mir_free(pfts.tszWorkingDir);
}
-
mir_free(pfts.pszFiles[0]);
mir_free(pfts.pszFiles);
}