From 0feb5da08f5f27ae702deac88975a608bf6099f4 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 27 Feb 2024 14:44:15 +0800 Subject: [PATCH] Add starter ItemSharesController Signed-off-by: Claudio Cambra --- .../Shares/ItemSharesController.swift | 17 +++++++++++++++++ .../project.pbxproj | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Shares/ItemSharesController.swift diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Shares/ItemSharesController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Shares/ItemSharesController.swift new file mode 100644 index 000000000..457acca36 --- /dev/null +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Shares/ItemSharesController.swift @@ -0,0 +1,17 @@ +// +// ItemSharesController.swift +// FileProviderExt +// +// Created by Claudio Cambra on 27/2/24. +// + +import FileProvider +import Foundation + +class ItemSharesController { + let itemIdentifier: NSFileProviderItemIdentifier + + init(itemIdentifier: NSFileProviderItemIdentifier) { + self.itemIdentifier = itemIdentifier + } +} diff --git a/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj b/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj index b7b7fa01f..dfd6f9e12 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj +++ b/shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 5307A6E82965DAD8001E0C6A /* NextcloudKit in Frameworks */ = {isa = PBXBuildFile; productRef = 5307A6E72965DAD8001E0C6A /* NextcloudKit */; }; 5307A6EB2965DB8D001E0C6A /* RealmSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 5307A6EA2965DB8D001E0C6A /* RealmSwift */; }; 5307A6F229675346001E0C6A /* NextcloudFilesDatabaseManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5307A6F129675346001E0C6A /* NextcloudFilesDatabaseManager.swift */; }; + 531522802B8DBBA2002E31BE /* ItemSharesController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5315227F2B8DBBA2002E31BE /* ItemSharesController.swift */; }; 5318AD9129BF42FB00CBB71C /* NextcloudItemMetadataTable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5318AD9029BF42FB00CBB71C /* NextcloudItemMetadataTable.swift */; }; 5318AD9529BF438F00CBB71C /* NextcloudLocalFileMetadataTable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5318AD9429BF438F00CBB71C /* NextcloudLocalFileMetadataTable.swift */; }; 5318AD9729BF493600CBB71C /* FileProviderMaterialisedEnumerationObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5318AD9629BF493600CBB71C /* FileProviderMaterialisedEnumerationObserver.swift */; }; @@ -150,6 +151,7 @@ /* Begin PBXFileReference section */ 5307A6F129675346001E0C6A /* NextcloudFilesDatabaseManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NextcloudFilesDatabaseManager.swift; sourceTree = ""; }; + 5315227F2B8DBBA2002E31BE /* ItemSharesController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemSharesController.swift; sourceTree = ""; }; 5318AD9029BF42FB00CBB71C /* NextcloudItemMetadataTable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NextcloudItemMetadataTable.swift; sourceTree = ""; }; 5318AD9429BF438F00CBB71C /* NextcloudLocalFileMetadataTable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NextcloudLocalFileMetadataTable.swift; sourceTree = ""; }; 5318AD9629BF493600CBB71C /* FileProviderMaterialisedEnumerationObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileProviderMaterialisedEnumerationObserver.swift; sourceTree = ""; }; @@ -254,6 +256,14 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 5315227E2B8DBB7E002E31BE /* Shares */ = { + isa = PBXGroup; + children = ( + 5315227F2B8DBBA2002E31BE /* ItemSharesController.swift */, + ); + path = Shares; + sourceTree = ""; + }; 5318AD8F29BF406500CBB71C /* Database */ = { isa = PBXGroup; children = ( @@ -310,6 +320,7 @@ 5318AD8F29BF406500CBB71C /* Database */, 5352E85929B7BFB4002CE85C /* Extensions */, 5350E4C72B0C368B00F276CB /* Services */, + 5315227E2B8DBB7E002E31BE /* Shares */, 53D666602B70C9A70042C03D /* FileProviderConfig.swift */, 538E397027F4765000FA63D5 /* FileProviderEnumerator.swift */, 53ED471F29C5E64200795DB1 /* FileProviderEnumerator+SyncEngine.swift */, @@ -685,6 +696,7 @@ 535AE30E29C0A2CC0042A9BA /* Logger+Extensions.swift in Sources */, 5307A6F229675346001E0C6A /* NextcloudFilesDatabaseManager.swift in Sources */, 537630952B860D560026BFAB /* FPUIExtensionServiceSource.swift in Sources */, + 531522802B8DBBA2002E31BE /* ItemSharesController.swift in Sources */, 53D056312970594F00988392 /* LocalFilesUtils.swift in Sources */, 538E396F27F4765000FA63D5 /* FileProviderItem.swift in Sources */, 5352B36829DC17D60011CE03 /* NextcloudFilesDatabaseManager+LocalFiles.swift in Sources */,