nextcloud-desktop.git
3 years agoExtension can now upload modifications to items on the server
Claudio Cambra [Mon, 27 Feb 2023 16:31:35 +0000 (17:31 +0100)]
Extension can now upload modifications to items on the server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for extension to create items correctly on the server
Claudio Cambra [Tue, 21 Feb 2023 13:59:10 +0000 (14:59 +0100)]
Add ability for extension to create items correctly on the server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fetch item metadata when fetching contents
Claudio Cambra [Mon, 20 Feb 2023 12:42:28 +0000 (13:42 +0100)]
Don't unnecessarily fetch item metadata when fetching contents

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUnprivate direcotryMetadataFromItemMetadata in database manager
Claudio Cambra [Mon, 20 Feb 2023 12:37:10 +0000 (13:37 +0100)]
Unprivate direcotryMetadataFromItemMetadata in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add directory metadata to database
Claudio Cambra [Mon, 20 Feb 2023 12:36:27 +0000 (13:36 +0100)]
Add convenience method to add directory metadata to database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd working file content fetching
Claudio Cambra [Thu, 16 Feb 2023 19:38:41 +0000 (20:38 +0100)]
Add working file content fetching

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add local file metadata from item metadata to database
Claudio Cambra [Thu, 16 Feb 2023 14:43:44 +0000 (15:43 +0100)]
Add convenience method to add local file metadata from item metadata to database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to add item metadata status
Claudio Cambra [Thu, 16 Feb 2023 13:44:16 +0000 (14:44 +0100)]
Add convenience method to add item metadata status

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to update item metadata status
Claudio Cambra [Tue, 14 Feb 2023 12:48:08 +0000 (13:48 +0100)]
Add convenience method to update item metadata status

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience properties to NextcloudItemMetadataTable
Claudio Cambra [Tue, 14 Feb 2023 12:09:07 +0000 (13:09 +0100)]
Add convenience properties to NextcloudItemMetadataTable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoStop using NextcloudKit.shared and NKCommon.shared, use specific NextcloudKit instanc...
Claudio Cambra [Thu, 2 Feb 2023 19:13:35 +0000 (20:13 +0100)]
Stop using NextcloudKit.shared and NKCommon.shared, use specific NextcloudKit instance instead to prevent clashing between different FileProvider domains

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSwitch to NCKit work/unsharedify-nckit branch
Claudio Cambra [Thu, 2 Feb 2023 19:12:39 +0000 (20:12 +0100)]
Switch to NCKit work/unsharedify-nckit branch

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix Realm crashes when trying to delete certain objects
Claudio Cambra [Thu, 2 Feb 2023 19:12:03 +0000 (20:12 +0100)]
Fix Realm crashes when trying to delete certain objects

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle errors when trying to read server url in FileProviderEnumerator
Claudio Cambra [Thu, 2 Feb 2023 13:18:46 +0000 (14:18 +0100)]
Properly handle errors when trying to read server url in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRemove setting connection status from fileproviderdomainmanager, this will be handled...
Claudio Cambra [Thu, 2 Feb 2023 12:11:48 +0000 (13:11 +0100)]
Remove setting connection status from fileproviderdomainmanager, this will be handled by the domain

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix scanning of child directories in FileProviderEnumerator
Claudio Cambra [Wed, 1 Feb 2023 18:35:08 +0000 (19:35 +0100)]
Fix scanning of child directories in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fail to get serverUrl for enumerated item in FileProviderEnumerat...
Claudio Cambra [Wed, 1 Feb 2023 17:24:23 +0000 (18:24 +0100)]
Don't unnecessarily fail to get serverUrl for enumerated item in FileProviderEnumerator when this can be acquired straight from the itemMetadata

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoOnly reimport entire file provider domain if there have been no recorded files when...
Claudio Cambra [Wed, 1 Feb 2023 17:20:44 +0000 (18:20 +0100)]
Only reimport entire file provider domain if there have been no recorded files when ncAccount is configured

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to check if any file metadatas have been stored for account...
Claudio Cambra [Wed, 1 Feb 2023 17:16:46 +0000 (18:16 +0100)]
Add convenience method to check if any file metadatas have been stored for account in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDon't unnecessarily fail to provide parentItemIdentifier in NextcloudFileProviderFile...
Claudio Cambra [Wed, 1 Feb 2023 17:14:33 +0000 (18:14 +0100)]
Don't unnecessarily fail to provide parentItemIdentifier in NextcloudFileProviderFilesUtils when we can get the root container straight from the item metadata in question

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for FileProviderDomainManager to wipe domains
Claudio Cambra [Wed, 1 Feb 2023 16:21:35 +0000 (17:21 +0100)]
Add ability for FileProviderDomainManager to wipe domains

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSwitch to develop branch of NextcloudKit
Claudio Cambra [Mon, 30 Jan 2023 19:33:10 +0000 (20:33 +0100)]
Switch to develop branch of NextcloudKit

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove and fix enumerator signalling after initial account setup in FileProviderExte...
Claudio Cambra [Mon, 30 Jan 2023 19:32:35 +0000 (20:32 +0100)]
Improve and fix enumerator signalling after initial account setup in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix URL path composition for utility methods in NextcloudFileProviderFilesUtils
Claudio Cambra [Mon, 30 Jan 2023 19:29:58 +0000 (20:29 +0100)]
Fix URL path composition for utility methods in NextcloudFileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix try/catch indentation in NextcloudFileDatabaseManager
Claudio Cambra [Mon, 30 Jan 2023 19:29:15 +0000 (20:29 +0100)]
Fix try/catch indentation in NextcloudFileDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix NextcloudItemMetadataTable status query type
Claudio Cambra [Mon, 30 Jan 2023 19:27:37 +0000 (20:27 +0100)]
Fix NextcloudItemMetadataTable status query type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix the webDavUrl for NextcloudAccount
Claudio Cambra [Mon, 30 Jan 2023 19:25:25 +0000 (20:25 +0100)]
Fix the webDavUrl for NextcloudAccount

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSet up NextcloudKit account in FileProviderExtension
Claudio Cambra [Sat, 28 Jan 2023 16:07:13 +0000 (17:07 +0100)]
Set up NextcloudKit account in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove logging in FileProviderEnumerator
Claudio Cambra [Fri, 27 Jan 2023 01:44:34 +0000 (02:44 +0100)]
Improve logging in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoKeep track of requested enumerators when account is being configured, notify them...
Claudio Cambra [Fri, 27 Jan 2023 01:26:27 +0000 (02:26 +0100)]
Keep track of requested enumerators when account is being configured, notify them as changed once account is set up

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove FileProvider logging
Claudio Cambra [Fri, 27 Jan 2023 00:54:32 +0000 (01:54 +0100)]
Improve FileProvider logging

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdded missing network entitlement to FileProviderExt
Claudio Cambra [Fri, 27 Jan 2023 00:49:49 +0000 (01:49 +0100)]
Added missing network entitlement to FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse safer separator for account details socket message
Claudio Cambra [Thu, 26 Jan 2023 22:36:00 +0000 (23:36 +0100)]
Use safer separator for account details socket message

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix path handling for file provider database setup
Claudio Cambra [Thu, 26 Jan 2023 22:10:43 +0000 (23:10 +0100)]
Fix path handling for file provider database setup

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoCorrectly register object schemas in Realm database
Claudio Cambra [Thu, 26 Jan 2023 22:08:16 +0000 (23:08 +0100)]
Correctly register object schemas in Realm database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSend account details over socket and simplify NextcloudAccount members, turn all...
Claudio Cambra [Thu, 26 Jan 2023 22:01:31 +0000 (23:01 +0100)]
Send account details over socket and simplify NextcloudAccount members, turn all to Strings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoComplete item method of FileProviderExtension
Claudio Cambra [Thu, 26 Jan 2023 19:51:23 +0000 (20:51 +0100)]
Complete item method of FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoComplete basic barebones enumeration
Claudio Cambra [Thu, 26 Jan 2023 19:50:40 +0000 (20:50 +0100)]
Complete basic barebones enumeration

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse NSLog instead of print in FileProvider
Claudio Cambra [Thu, 26 Jan 2023 19:50:10 +0000 (20:50 +0100)]
Use NSLog instead of print in FileProvider

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse more modern Realm @Persisted
Claudio Cambra [Thu, 26 Jan 2023 19:48:58 +0000 (20:48 +0100)]
Use more modern Realm @Persisted

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake record updating methods safer by checking for existing metadatas internally
Claudio Cambra [Thu, 26 Jan 2023 18:09:24 +0000 (19:09 +0100)]
Make record updating methods safer by checking for existing metadatas internally

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd method to get directory tables from database in manager
Claudio Cambra [Thu, 26 Jan 2023 17:54:52 +0000 (18:54 +0100)]
Add method to get directory tables from database in manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake sure to create copies of Realm objects to prevent issues with live-fire objects
Claudio Cambra [Thu, 26 Jan 2023 17:47:34 +0000 (18:47 +0100)]
Make sure to create copies of Realm objects to prevent issues with live-fire objects

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd comparison helper to NextcloudDirectoryMetadataTable
Claudio Cambra [Thu, 26 Jan 2023 17:35:01 +0000 (18:35 +0100)]
Add comparison helper to NextcloudDirectoryMetadataTable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd parent directory server url data to directory table
Claudio Cambra [Thu, 26 Jan 2023 17:33:07 +0000 (18:33 +0100)]
Add parent directory server url data to directory table

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor updateDirectoryMetadatas in the database manager
Claudio Cambra [Thu, 26 Jan 2023 17:09:19 +0000 (18:09 +0100)]
Refactor updateDirectoryMetadatas in the database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd updateDirectoryMetadatasFromItemMetadatas to NextcloudFilesDatabaseManager
Claudio Cambra [Thu, 26 Jan 2023 15:07:46 +0000 (16:07 +0100)]
Add updateDirectoryMetadatasFromItemMetadatas to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSplit off update and creation process of updateItemMetadatas of NextcloudFilesDatabas...
Claudio Cambra [Wed, 25 Jan 2023 19:20:46 +0000 (20:20 +0100)]
Split off update and creation process of updateItemMetadatas of NextcloudFilesDatabaseManager to private method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSplit off deletion process of updateItemMetadatas of NextcloudFilesDatabaseManager...
Claudio Cambra [Wed, 25 Jan 2023 19:18:51 +0000 (20:18 +0100)]
Split off deletion process of updateItemMetadatas of NextcloudFilesDatabaseManager to private method

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd updateItemMetadatas method to NextcloudFilesDatabaseManager
Claudio Cambra [Wed, 25 Jan 2023 19:15:13 +0000 (20:15 +0100)]
Add updateItemMetadatas method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience isInSameRemoteState method for NextcloudItemMetadataTable
Claudio Cambra [Wed, 25 Jan 2023 18:47:14 +0000 (19:47 +0100)]
Add convenience isInSameRemoteState method for NextcloudItemMetadataTable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd itemMetadatas method to NextcloudFilesDatabaseManager with status as parameter
Claudio Cambra [Mon, 23 Jan 2023 16:25:00 +0000 (17:25 +0100)]
Add itemMetadatas method to NextcloudFilesDatabaseManager with status as parameter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd NKFile to NextcloudItemMetadataTable converter methods to NextcloudFilesDatabaseM...
Claudio Cambra [Fri, 13 Jan 2023 13:53:40 +0000 (14:53 +0100)]
Add NKFile to NextcloudItemMetadataTable converter methods to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd clarifying comments to NextcloudFilesDatabaseTables
Claudio Cambra [Fri, 13 Jan 2023 13:17:39 +0000 (14:17 +0100)]
Add clarifying comments to NextcloudFilesDatabaseTables

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd itemMetadatas method to NextcloudFilesDatabaseManager
Claudio Cambra [Fri, 13 Jan 2023 13:17:04 +0000 (14:17 +0100)]
Add itemMetadatas method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd directoryMetadata method to NextcloudFilesDatabaseManager
Claudio Cambra [Fri, 13 Jan 2023 00:59:50 +0000 (01:59 +0100)]
Add directoryMetadata method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ncKitAccount property to NextcloudAccount
Claudio Cambra [Fri, 13 Jan 2023 00:34:57 +0000 (01:34 +0100)]
Add ncKitAccount property to NextcloudAccount

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd completeObserver method to FileProviderEnumerator
Claudio Cambra [Thu, 12 Jan 2023 20:50:35 +0000 (21:50 +0100)]
Add completeObserver method to FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFill out FileProviderItem
Claudio Cambra [Thu, 12 Jan 2023 20:49:28 +0000 (21:49 +0100)]
Fill out FileProviderItem

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd localFileMetadataFromOcId method to NextcloudFilesDatabaseManager
Claudio Cambra [Thu, 12 Jan 2023 20:36:51 +0000 (21:36 +0100)]
Add localFileMetadataFromOcId method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd NextcloudLocalFileMetadataTable derived from iOS app
Claudio Cambra [Thu, 12 Jan 2023 20:34:21 +0000 (21:34 +0100)]
Add NextcloudLocalFileMetadataTable derived from iOS app

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRename NextcloudFileMetadataTable to NextcloudItemMetadataTable to more accurately...
Claudio Cambra [Thu, 12 Jan 2023 20:16:49 +0000 (21:16 +0100)]
Rename NextcloudFileMetadataTable to NextcloudItemMetadataTable to more accurately match functionality

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd isFileSynced helper func to FileProviderFilesUtils
Claudio Cambra [Thu, 12 Jan 2023 19:34:07 +0000 (20:34 +0100)]
Add isFileSynced helper func to FileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd transfer status enum to NextcloudFileMetadataTable
Claudio Cambra [Thu, 12 Jan 2023 19:33:22 +0000 (20:33 +0100)]
Add transfer status enum to NextcloudFileMetadataTable

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience parentItemIdentifierFromMetadata convenience function to NextcloudFil...
Claudio Cambra [Thu, 12 Jan 2023 17:34:38 +0000 (18:34 +0100)]
Add convenience parentItemIdentifierFromMetadata convenience function to NextcloudFileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience createFileOrDirectoryLocally func to NextcloudFileProviderFilesUtils
Claudio Cambra [Thu, 12 Jan 2023 17:33:37 +0000 (18:33 +0100)]
Add convenience createFileOrDirectoryLocally func to NextcloudFileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdded convenience functions to create paths for NC files (and create directories...
Claudio Cambra [Thu, 12 Jan 2023 16:50:49 +0000 (17:50 +0100)]
Added convenience functions to create paths for NC files (and create directories and placeholder files if inexistent)

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse pathForFileProviderExtData in NextcloudFilesDatabaseManager
Claudio Cambra [Thu, 12 Jan 2023 15:51:44 +0000 (16:51 +0100)]
Use pathForFileProviderExtData in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd pathForFileProviderExtData convenience method to NextcloudFileProviderFilesUtils
Claudio Cambra [Thu, 12 Jan 2023 15:47:29 +0000 (16:47 +0100)]
Add pathForFileProviderExtData convenience method to NextcloudFileProviderFilesUtils

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse pathForAppGroupContainer func in FileProviderExtension
Claudio Cambra [Thu, 12 Jan 2023 15:38:57 +0000 (16:38 +0100)]
Use pathForAppGroupContainer func in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd NextcloudFileProviderFilesUtils for file-related utility funcs
Claudio Cambra [Thu, 12 Jan 2023 15:34:33 +0000 (16:34 +0100)]
Add NextcloudFileProviderFilesUtils for file-related utility funcs

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse server dav files URL in enumerator
Claudio Cambra [Tue, 10 Jan 2023 20:21:28 +0000 (21:21 +0100)]
Use server dav files URL in enumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoComplete FileProviderEnumerator init, get correct serverUrl for enumerator item ident...
Claudio Cambra [Tue, 10 Jan 2023 19:25:26 +0000 (20:25 +0100)]
Complete FileProviderEnumerator init, get correct serverUrl for enumerator item identifier

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd directoryMetadataForFile method to NextcloudFilesDatabaseManager
Claudio Cambra [Tue, 10 Jan 2023 19:24:34 +0000 (20:24 +0100)]
Add directoryMetadataForFile method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor NextclouDFilesDatabaseManager methods slightly for consision
Claudio Cambra [Tue, 10 Jan 2023 18:23:33 +0000 (19:23 +0100)]
Refactor NextclouDFilesDatabaseManager methods slightly for consision

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd database table for directory from iOS NC
Claudio Cambra [Tue, 10 Jan 2023 18:14:25 +0000 (19:14 +0100)]
Add database table for directory from iOS NC

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd getFileMetadataFromFileProviderItemIdentifier method to NextcloudFilesDatabaseManager
Claudio Cambra [Tue, 10 Jan 2023 17:36:10 +0000 (18:36 +0100)]
Add getFileMetadataFromFileProviderItemIdentifier method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd getFileMetadataFromOcId method to NextcloudFilesDatabaseManager
Claudio Cambra [Tue, 10 Jan 2023 16:58:00 +0000 (17:58 +0100)]
Add getFileMetadataFromOcId method to NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd basic NextcloudFilesDatabaseManager for FileProvider files
Claudio Cambra [Thu, 5 Jan 2023 19:59:50 +0000 (20:59 +0100)]
Add basic NextcloudFilesDatabaseManager for FileProvider files

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd NextcloudFilesDatabaseTables for FileProvider files database
Claudio Cambra [Thu, 5 Jan 2023 19:59:12 +0000 (20:59 +0100)]
Add NextcloudFilesDatabaseTables for FileProvider files database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake ncAccount in FileProviderExtension an optional, make state of FileProviderDomain...
Claudio Cambra [Wed, 4 Jan 2023 20:40:30 +0000 (21:40 +0100)]
Make ncAccount in FileProviderExtension an optional, make state of FileProviderDomainAccountData immediately on init

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake localSocketClient of FileProviderExtension a lazy var
Claudio Cambra [Wed, 4 Jan 2023 20:18:21 +0000 (21:18 +0100)]
Make localSocketClient of FileProviderExtension a lazy var

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd URLSession to FileProviderExtension
Claudio Cambra [Wed, 4 Jan 2023 20:09:48 +0000 (21:09 +0100)]
Add URLSession to FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agomacosx: Add NextcloudKit and Realm dependencies
Claudio Cambra [Wed, 4 Jan 2023 17:44:39 +0000 (18:44 +0100)]
macosx: Add NextcloudKit and Realm dependencies

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoGrab account keychain entry identifier data from socket in FileProviderExt
Claudio Cambra [Fri, 30 Dec 2022 18:52:51 +0000 (19:52 +0100)]
Grab account keychain entry identifier data from socket in FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for fileprovidersocketcontroller to send keychain account identifier...
Claudio Cambra [Fri, 30 Dec 2022 15:36:13 +0000 (16:36 +0100)]
Add ability for fileprovidersocketcontroller to send keychain account identifier over socket

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd FileProviderDomainNextcloudAccountData that grabs account info from keychain
Claudio Cambra [Fri, 30 Dec 2022 15:32:54 +0000 (16:32 +0100)]
Add FileProviderDomainNextcloudAccountData that grabs account info from keychain

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMove FinderSync-specific GET_STRINGS initial call out of LocalSocketClient and into...
Claudio Cambra [Wed, 28 Dec 2022 23:46:44 +0000 (00:46 +0100)]
Move FinderSync-specific GET_STRINGS initial call out of LocalSocketClient and into FinderSync

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd ability for FileProvider app extension to reply to file provider domain identifie...
Claudio Cambra [Wed, 28 Dec 2022 23:21:33 +0000 (00:21 +0100)]
Add ability for FileProvider app extension to reply to file provider domain identifier request

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd sendMessage method to LocalSocketClient public API
Claudio Cambra [Wed, 28 Dec 2022 22:44:40 +0000 (23:44 +0100)]
Add sendMessage method to LocalSocketClient public API

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoClean up public API of LocalSocketClient
Claudio Cambra [Wed, 28 Dec 2022 22:19:06 +0000 (23:19 +0100)]
Clean up public API of LocalSocketClient

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoInitialise file provider socket controller by requesting file provder domain data...
Claudio Cambra [Wed, 28 Dec 2022 21:28:30 +0000 (22:28 +0100)]
Initialise file provider socket controller by requesting file provder domain data over socket from FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd sendMessage to fileprovidersocketcontroller
Claudio Cambra [Wed, 28 Dec 2022 16:46:12 +0000 (17:46 +0100)]
Add sendMessage to fileprovidersocketcontroller

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle readyRead signal from socket in FileProviderSocketController
Claudio Cambra [Wed, 28 Dec 2022 14:10:43 +0000 (15:10 +0100)]
Handle readyRead signal from socket in FileProviderSocketController

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdded working socket connection between desktop client local socket server and app...
Claudio Cambra [Mon, 26 Dec 2022 23:18:00 +0000 (00:18 +0100)]
Added working socket connection between desktop client local socket server and app extension socket client

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoModify FinderSyncExt to move components into shared Framework that can be used in...
Claudio Cambra [Fri, 23 Dec 2022 17:24:05 +0000 (18:24 +0100)]
Modify FinderSyncExt to move components into shared Framework that can be used in FileProviderExt

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoClean up LocalSocketClient code in shell extension
Claudio Cambra [Fri, 23 Dec 2022 16:52:16 +0000 (17:52 +0100)]
Clean up LocalSocketClient code in shell extension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRename OwnCloudFinderSync Xcode projext to NextcloudIntegration
Claudio Cambra [Thu, 22 Dec 2022 15:03:40 +0000 (16:03 +0100)]
Rename OwnCloudFinderSync Xcode projext to NextcloudIntegration

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake the socket manager just manage the server, leave the socket controller in charge...
Claudio Cambra [Thu, 22 Dec 2022 13:37:30 +0000 (14:37 +0100)]
Make the socket manager just manage the server, leave the socket controller in charge of controlling the socket

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoMake fileprovidersocketmanager keep track of connected sockets
Claudio Cambra [Thu, 22 Dec 2022 12:30:36 +0000 (13:30 +0100)]
Make fileprovidersocketmanager keep track of connected sockets

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>