summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_proto.h
diff options
context:
space:
mode:
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);
}