From 5f9f0311d1ff673c1a3b279152de2e9c31b8d1cf Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 12 Jan 2023 20:33:22 +0100 Subject: [PATCH] Add transfer status enum to NextcloudFileMetadataTable Signed-off-by: Claudio Cambra --- .../NextcloudFilesDatabaseTables.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseTables.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseTables.swift index a732ade81..cd75cb19a 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseTables.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseTables.swift @@ -16,6 +16,20 @@ import Foundation import RealmSwift class NextcloudFileMetadataTable: Object { + enum Status: Int { + case downloadError = -4 + case downloading = -3 + case inDownload = -2 + case waitDownload = -1 + + case normal = 0 + + case waitUpload = 1 + case inUpload = 2 + case uploading = 3 + case uploadError = 4 + } + override func isEqual(_ object: Any?) -> Bool { if let object = object as? NextcloudFileMetadataTable { return self.fileId == object.fileId && -- 2.30.2