diff options
Diffstat (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp')
-rw-r--r-- | plugins/CloudFile/src/Services/dropbox_service.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp index f92787dec9..d5270ef5e8 100644 --- a/plugins/CloudFile/src/Services/dropbox_service.cpp +++ b/plugins/CloudFile/src/Services/dropbox_service.cpp @@ -4,7 +4,6 @@ CDropboxService::CDropboxService(const char *protoName, const wchar_t *userName) : CCloudService(protoName, userName) { - //CreateServiceFunctionObj(MS_DROPBOX_UPLOAD, &CDropboxService::UploadToDropbox, this); } CDropboxService* CDropboxService::Init(const char *moduleName, const wchar_t *userName) @@ -311,35 +310,3 @@ UINT CDropboxService::Upload(FileTransferParam *ftp) ftp->SetStatus(ACKRESULT_SUCCESS); return ACKRESULT_SUCCESS; } - -INT_PTR CDropboxService::UploadToDropbox(void *obj, WPARAM wParam, LPARAM lParam) -{ - CDropboxService *self = (CDropboxService*)obj; - DropboxUploadInfo *uploadInfo = (DropboxUploadInfo*)lParam; - - FileTransferParam *ftp = new FileTransferParam(0); - ftp->SetWorkingDirectory(uploadInfo->localPath); - ftp->SetServerFolder(uploadInfo->serverFolder); - - if (PathIsDirectory(uploadInfo->localPath)) - { - // temporary unsupported - Transfers.remove(ftp); - delete ftp; - - return ACKRESULT_FAILED; - } - else - ftp->AddFile(uploadInfo->localPath); - - int res = self->Upload(ftp); - if (res == ACKRESULT_SUCCESS && wParam) { - char **data = (char**)wParam; - *data = mir_utf8encodeW(ftp->GetData()); - } - - Transfers.remove(ftp); - delete ftp; - - return res; -}
\ No newline at end of file |