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/file_transfer.h | |
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/file_transfer.h')
-rw-r--r-- | plugins/Dropbox/src/file_transfer.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/Dropbox/src/file_transfer.h b/plugins/Dropbox/src/file_transfer.h index fed277289c..2d9156bcae 100644 --- a/plugins/Dropbox/src/file_transfer.h +++ b/plugins/Dropbox/src/file_transfer.h @@ -15,7 +15,7 @@ private: const TCHAR* folderName;
int relativePathStart;
- CMString serverPath;
+ CMString serverFolder;
CMString data;
@@ -96,17 +96,17 @@ public: folderName = _tcsrchr(path, '\\') + 1;
}
- void SetServerPath(const TCHAR *path)
+ void SetServerFolder(const TCHAR *path)
{
if (path)
- serverPath = path;
+ serverFolder = path;
}
- const TCHAR* GetServerPath() const
+ const TCHAR* GetServerFolder() const
{
- if (serverPath.IsEmpty())
+ if (serverFolder.IsEmpty())
return NULL;
- return serverPath;
+ return serverFolder;
}
const TCHAR* GetFolderName() const
@@ -120,11 +120,11 @@ public: pfts.ptszFiles[pfts.totalFiles++] = mir_tstrdup(path);
pfts.ptszFiles[pfts.totalFiles] = NULL;
- FILE *hFile = _tfopen(path, L"rb");
- if (hFile != NULL) {
- _fseeki64(hFile, 0, SEEK_END);
- pfts.totalBytes += _ftelli64(hFile);
- fclose(hFile);
+ FILE *file = _tfopen(path, L"rb");
+ if (file != NULL) {
+ _fseeki64(file, 0, SEEK_END);
+ pfts.totalBytes += _ftelli64(file);
+ fclose(file);
}
}
@@ -161,9 +161,9 @@ public: rewind(hFile);
}
- size_t ReadCurrentFile(void *data, size_t count)
+ size_t ReadCurrentFile(void *buffer, size_t count)
{
- return fread(data, sizeof(char), count, hFile);
+ return fread(buffer, sizeof(char), count, hFile);
}
void CheckCurrentFile()
|