summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/file_transfer.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-03-11 14:19:01 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-03-11 14:19:01 +0000
commita0a667fd07e912b1dc425748e58a72fa9a50512f (patch)
tree027b0ed27a5c3d697dd1aa51a13ca0d3e1375582 /plugins/Dropbox/src/file_transfer.h
parentf8f38839dba925d30c09d9b1527258973c24e591 (diff)
Dropbox:
- fixed TabSrmm button behavior - added ME_DROPBOX_SEND_SUCCEEDED and ME_DROPBOX_SEND_FAILED events - remained only unicode version of MS_DROPBOX_SEND_FILE - minor fixes - version bumped git-svn-id: http://svn.miranda-ng.org/main/trunk@8557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/file_transfer.h')
-rw-r--r--plugins/Dropbox/src/file_transfer.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h
index a4d76b548b..9dbaf97073 100644
--- a/plugins/Dropbox/src/file_transfer.h
+++ b/plugins/Dropbox/src/file_transfer.h
@@ -7,23 +7,22 @@ struct FileTransferParam
{
HANDLE hProcess;
MCONTACT hContact;
- CDropbox *instance;
PROTOFILETRANSFERSTATUS pfts;
int totalFolders;
- char **pszFolders;
+ wchar_t **pwszFolders;
int relativePathStart;
- FileTransferParam(CDropbox *instance)
- {
- this->instance = instance;
+ bool withVisualisation;
+ FileTransferParam()
+ {
totalFolders = 0;
- pszFolders = NULL;
+ pwszFolders = NULL;
relativePathStart = 0;
pfts.cbSize = sizeof(this->pfts);
- pfts.flags = PFTS_UTF;
+ pfts.flags = PFTS_UNICODE;
pfts.currentFileNumber = 0;
pfts.currentFileProgress = 0;
pfts.currentFileSize = 0;
@@ -43,16 +42,16 @@ struct FileTransferParam
{
if (pfts.pszFiles[i]) mir_free(pfts.pszFiles[i]);
}
- delete pfts.pszFiles;
+ mir_free(pfts.pszFiles);
}
- if (pszFolders)
+ if (pwszFolders)
{
- for (int i = 0; pszFolders[i]; i++)
+ for (int i = 0; pwszFolders[i]; i++)
{
- if (pszFolders[i]) mir_free(pszFolders[i]);
+ if (pwszFolders[i]) mir_free(pwszFolders[i]);
}
- delete pszFolders;
+ mir_free(pwszFolders);
}
}
};