diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-03-04 16:59:35 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-03-04 16:59:35 +0000 |
commit | 6d02559b3c3cb05cfc6a0ade5c4815dda4427834 (patch) | |
tree | 1233d2f09a0c7e25c045ccae29edb6cc88e4efc4 /plugins/Dropbox/src/dropbox_services.cpp | |
parent | 03c5cb9df33ae92ac85e045fd9c7c5b9adf294b3 (diff) |
Dropbox: removed old service
git-svn-id: http://svn.miranda-ng.org/main/trunk@16420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 853db24e00..8d21b72cc2 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -161,33 +161,13 @@ INT_PTR CDropbox::ProtoReceiveMessage(WPARAM, LPARAM lParam) return 0;
}
-INT_PTR CDropbox::SendFileToDropbox(WPARAM hContact, LPARAM lParam)
-{
- if (!HasAccessToken())
- return 0;
-
- if (hContact == NULL)
- hContact = GetDefaultContact();
-
- TCHAR *filePath = (TCHAR*)lParam;
-
- FileTransferParam *ftp = new FileTransferParam(hContact);
- ftp->SetWorkingDirectory(filePath);
- ftp->AddFile(filePath);
-
- mir_forkthreadowner(CDropbox::SendFilesAndEventAsync, this, 0, 0);
-
- return ftp->GetId();
-}
-
INT_PTR CDropbox::UploadToDropbox(WPARAM, LPARAM lParam)
{
DropboxUploadInfo *uploadInfo = (DropboxUploadInfo*)lParam;
FileTransferParam *ftp = new FileTransferParam(GetDefaultContact());
-
ftp->SetWorkingDirectory(uploadInfo->localPath);
- ftp->SetServerPath(uploadInfo->serverPath);
+ ftp->SetServerFolder(uploadInfo->serverFolder);
if (PathIsDirectory(uploadInfo->localPath))
{
@@ -205,9 +185,8 @@ INT_PTR CDropbox::UploadToDropboxAsync(WPARAM, LPARAM lParam) DropboxUploadInfo *uploadInfo = (DropboxUploadInfo*)lParam;
FileTransferParam *ftp = new FileTransferParam(GetDefaultContact());
-
ftp->SetWorkingDirectory(uploadInfo->localPath);
- ftp->SetServerPath(uploadInfo->serverPath);
+ ftp->SetServerFolder(uploadInfo->serverFolder);
if (PathIsDirectory(uploadInfo->localPath))
{
|