Upload table changes
This commit is contained in:
@@ -55,7 +55,7 @@ private:
|
||||
const CSiaApi& _siaApi;
|
||||
SQLite::Database _uploadDatabase;
|
||||
std::mutex _uploadMutex;
|
||||
std::shared_ptr<std::vector<CSiaFilePtr>> _uploadFileList;
|
||||
std::shared_ptr<json> _uploadFileList;
|
||||
|
||||
private:
|
||||
void CleanUploadDatabase(CSiaDriveConfig* siaDriveConfig);
|
||||
@@ -76,14 +76,12 @@ public:
|
||||
CSiaError<_UploadErrorCode> Remove(const SString& siaPath);
|
||||
CSiaError<_UploadErrorCode> RenameFile(const SString& siaPath, const SString& newSiaPath);
|
||||
CSiaError<_UploadErrorCode> RenameFolder(const SString& siaPath, const SString& newSiaPath);
|
||||
std::shared_ptr<std::vector<CSiaFilePtr>> GetUploadFileList() const;
|
||||
std::shared_ptr<json> GetUploadFileList() const;
|
||||
};
|
||||
|
||||
typedef CUploadManager::_UploadStatus UploadStatus;
|
||||
typedef CUploadManager::_UploadErrorCode UploadErrorCode;
|
||||
typedef CSiaError<CUploadManager::_UploadErrorCode> UploadError;
|
||||
typedef std::vector<CSiaFilePtr> UploadFileList;
|
||||
typedef std::shared_ptr<UploadFileList> UploadFileListPtr;
|
||||
|
||||
NS_END(2)
|
||||
|
||||
|
@@ -49,7 +49,7 @@ private:
|
||||
|
||||
public:
|
||||
void ClearCache();
|
||||
UploadFileListPtr GetUploadFileList() const;
|
||||
std::shared_ptr<json> GetUploadFileList() const;
|
||||
bool IsMounted() const;
|
||||
void Mount(const wchar_t& driveLetter, const SString& cacheLocation, const std::uint64_t& maxCacheSizeBytes);
|
||||
void Unmount(const bool& clearCache = false);
|
||||
|
Reference in New Issue
Block a user