diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-12 20:24:43 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-12 20:24:43 +0000 |
commit | b3742e87f4003a80c13ece74264397b6c137096b (patch) | |
tree | 486df2f52bb840eb8524055e5fb12c2e5ee1ab24 /plugins/Dropbox/src/file_transfer.h | |
parent | ee0a6f7683054bdb680bb9efffb16c68d87bec5a (diff) |
Dropbox: attempt to terminate upload on cancel
git-svn-id: http://svn.miranda-ng.org/main/trunk@13563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/file_transfer.h')
-rw-r--r-- | plugins/Dropbox/src/file_transfer.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h index 3def765d3e..8afb1b4ec3 100644 --- a/plugins/Dropbox/src/file_transfer.h +++ b/plugins/Dropbox/src/file_transfer.h @@ -23,8 +23,10 @@ struct FileTransferParam MCONTACT hContact;
PROTOFILETRANSFERSTATUS pfts;
+ bool isTerminated;
+
int totalFolders;
- TCHAR **pwszFolders;
+ TCHAR **ptszFolders;
int relativePathStart;
LIST<char> urlList;
@@ -32,9 +34,11 @@ struct FileTransferParam FileTransferParam() : urlList(1)
{
totalFolders = 0;
- pwszFolders = NULL;
+ ptszFolders = NULL;
relativePathStart = 0;
+ isTerminated = false;
+
pfts.cbSize = sizeof(this->pfts);
pfts.flags = PFTS_TCHAR;
pfts.currentFileNumber = 0;
@@ -45,13 +49,13 @@ struct FileTransferParam pfts.totalProgress = 0;
pfts.pszFiles = NULL;
pfts.tszWorkingDir = NULL;
- pfts.wszCurrentFile = NULL;
+ pfts.tszCurrentFile = NULL;
}
~FileTransferParam()
{
- if (pfts.wszWorkingDir)
- mir_free(pfts.wszWorkingDir);
+ if (pfts.tszWorkingDir)
+ mir_free(pfts.tszWorkingDir);
if (pfts.pszFiles)
{
@@ -62,13 +66,13 @@ struct FileTransferParam mir_free(pfts.pszFiles);
}
- if (pwszFolders)
+ if (ptszFolders)
{
- for (int i = 0; pwszFolders[i]; i++)
+ for (int i = 0; ptszFolders[i]; i++)
{
- if (pwszFolders[i]) mir_free(pwszFolders[i]);
+ if (ptszFolders[i]) mir_free(ptszFolders[i]);
}
- mir_free(pwszFolders);
+ mir_free(ptszFolders);
}
for (int i = 0; i < urlList.getCount(); i++)
|