Add transfer status enum to NextcloudFileMetadataTable
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 12 Jan 2023 19:33:22 +0000 (20:33 +0100)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 12 May 2023 05:21:11 +0000 (13:21 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/NextcloudFilesDatabaseTables.swift

index a732ade81a0a972abbdfa562735d560287691635..cd75cb19ae60430941c9a839db2575b4dfb7e55b 100644 (file)
@@ -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 &&