summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/file_transfer.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/file_transfer.h')
-rw-r--r--plugins/Dropbox/src/file_transfer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h
index f63483d46f..24c4735f6e 100644
--- a/plugins/Dropbox/src/file_transfer.h
+++ b/plugins/Dropbox/src/file_transfer.h
@@ -14,6 +14,8 @@ struct FileTransferParam
LIST<char> urls;
+ TCHAR *description;
+
FileTransferParam() : urls(1)
{
hFile = NULL;
@@ -38,6 +40,8 @@ struct FileTransferParam
pfts.ptszFiles[pfts.totalFiles] = NULL;
pfts.tszWorkingDir = NULL;
pfts.tszCurrentFile = NULL;
+
+ description = NULL;
ProtoBroadcastAck(MODULE, pfts.hContact, ACKTYPE_FILE, ACKRESULT_INITIALISING, hProcess, 0);
}
@@ -61,6 +65,16 @@ struct FileTransferParam
for (int i = 0; i < urls.getCount(); i++)
mir_free(urls[i]);
urls.destroy();
+
+ if (description)
+ mir_free(description);
+ }
+
+ void SetDescription(const TCHAR *text)
+ {
+ if (text[0] == 0)
+ return;
+ description = mir_tstrdup(text);
}
void SetWorkingDirectory(const TCHAR *path)