22 #ifndef BACKENDS_CLOUD_STORAGE_H 23 #define BACKENDS_CLOUD_STORAGE_H 25 #include "backends/cloud/storagefile.h" 26 #include "backends/cloud/storageinfo.h" 27 #include "backends/networking/curl/request.h" 28 #include "backends/networking/curl/curlrequest.h" 29 #include "common/array.h" 30 #include "common/callback.h" 31 #include "common/mutex.h" 32 #include "common/path.h" 33 #include "common/stream.h" 34 #include "common/str.h" 38 class CommandReceiver;
44 class SavesSyncRequest;
45 class FolderDownloadRequest;
68 bool _syncRestartRequestsed;
124 bool isEnabled()
const;
147 virtual bool uploadStreamSupported();
179 virtual bool isWorking();
184 virtual bool isSyncing();
187 virtual double getSyncDownloadingProgress();
190 uint64 bytesDownloaded = 0, bytesToDownload = 0;
191 uint64 filesDownloaded = 0, filesToDownload = 0;
192 bool inProgress =
false;
199 virtual double getSyncProgress();
205 virtual void cancelSync();
209 virtual void savesSyncDefaultCallback(
const BoolResponse &response);
221 virtual void cancelDownload();
227 virtual bool isDownloading();
230 virtual double getDownloadingProgress();
233 virtual uint64 getDownloadBytesNumber();
236 virtual uint64 getDownloadTotalBytesNumber();
239 virtual uint64 getDownloadSpeed();
249 virtual void directoryDownloadedCallback(
const FileArrayResponse &response);
Definition: basestorage.h:28
SavesSyncRequest * _savesSyncRequest
Definition: storage.h:67
FolderDownloadRequest * _downloadFolderRequest
Definition: storage.h:71
uint32 _runningRequestsCount
Definition: storage.h:63
bool _isEnabled
Definition: storage.h:74
Definition: folderdownloadrequest.h:31
void NORETURN_PRE error(MSVC_PRINTF const char *s,...) GCC_PRINTF(1
Definition: storage.h:189
Definition: savessyncrequest.h:32
Definition: request.h:119