From b25601a5044b7f5ecbc0b70c5f6e556a80be0873 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 26 Feb 2016 12:36:50 +0000 Subject: Dropbox: support to file description git-svn-id: http://svn.miranda-ng.org/main/trunk@16346 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/file_transfer.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugins/Dropbox/src/file_transfer.h') 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 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) -- cgit v1.2.3