diff options
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))
{
|