summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-02-28 23:53:51 +0300
committeraunsane <aunsane@gmail.com>2018-02-28 23:56:44 +0300
commit77f131a927158e6131fdad1c94ad166e0048e318 (patch)
tree94ad387a04b0111fa687a2aaa55dec3ab899e142 /plugins/CloudFile/src/Services
parent24ab74843c7f94e6adb212c3d8081abc4fb27530 (diff)
CloudFile: auth doesn't work (fixed #1171)
Diffstat (limited to 'plugins/CloudFile/src/Services')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp33
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.h2
2 files changed, 0 insertions, 35 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
diff --git a/plugins/CloudFile/src/Services/dropbox_service.h b/plugins/CloudFile/src/Services/dropbox_service.h
index 9c7d781fcd..1010779229 100644
--- a/plugins/CloudFile/src/Services/dropbox_service.h
+++ b/plugins/CloudFile/src/Services/dropbox_service.h
@@ -31,8 +31,6 @@ public:
void Logout() override;
UINT Upload(FileTransferParam *ftp) override;
-
- static INT_PTR UploadToDropbox(void*, WPARAM wParam, LPARAM lParam);
};
#endif //_CLOUDSERVICE_DROPBOX_H_ \ No newline at end of file