nextcloud-desktop.git
3 years agoBetter handle initial set up of the file provider extension
Claudio Cambra [Thu, 9 Mar 2023 18:00:35 +0000 (19:00 +0100)]
Better handle initial set up of the file provider extension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle 404 errors from readFileOrFolder as special deletion case in FileProviderEnume...
Claudio Cambra [Thu, 9 Mar 2023 15:51:31 +0000 (16:51 +0100)]
Handle 404 errors from readFileOrFolder as special deletion case in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse ocIds for directory metadata deletion, prevent deletion if no such directory...
Claudio Cambra [Thu, 9 Mar 2023 15:47:27 +0000 (16:47 +0100)]
Use ocIds for directory metadata deletion, prevent deletion if no such directory found in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoUse ocIds for item metadata deletion in NextcloudFilesDatabaseManager
Claudio Cambra [Thu, 9 Mar 2023 15:45:28 +0000 (16:45 +0100)]
Use ocIds for item metadata deletion in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoImprove handling of nil values in CompleteChangesObserver
Claudio Cambra [Thu, 9 Mar 2023 14:45:38 +0000 (15:45 +0100)]
Improve handling of nil values in CompleteChangesObserver

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate changed in the working set
Claudio Cambra [Thu, 9 Mar 2023 13:51:13 +0000 (14:51 +0100)]
Enumerate changed in the working set

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor change enumeration completion into separate static function
Claudio Cambra [Thu, 9 Mar 2023 12:27:57 +0000 (13:27 +0100)]
Refactor change enumeration completion into separate static function

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoDelete new updated items that are now E2EE
Claudio Cambra [Thu, 9 Mar 2023 12:16:32 +0000 (13:16 +0100)]
Delete new updated items that are now E2EE

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate changes for normal serverUrls in FileProviderEnumerator
Claudio Cambra [Thu, 9 Mar 2023 12:14:03 +0000 (13:14 +0100)]
Enumerate changes for normal serverUrls in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRename completeObserver to completeEnumerationObserver
Claudio Cambra [Thu, 9 Mar 2023 11:54:18 +0000 (12:54 +0100)]
Rename completeObserver to completeEnumerationObserver

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix the serverUrl used to fetch database item metadatas on enumerateItems
Claudio Cambra [Thu, 9 Mar 2023 01:09:39 +0000 (02:09 +0100)]
Fix the serverUrl used to fetch database item metadatas on enumerateItems

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoFix accidental purge of all metadatas caused by trying to call updateDirectoryMetadat...
Claudio Cambra [Thu, 9 Mar 2023 00:29:38 +0000 (01:29 +0100)]
Fix accidental purge of all metadatas caused by trying to call updateDirectoryMetadatasFromItemMetadatas when reading the root container

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoRefactor readFileOrFolder to be more adaptible to enumerating items or changes
Claudio Cambra [Thu, 9 Mar 2023 00:19:00 +0000 (01:19 +0100)]
Refactor readFileOrFolder to be more adaptible to enumerating items or changes

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly delete directory and all children when updating folder metadatas in database...
Claudio Cambra [Wed, 8 Mar 2023 22:27:45 +0000 (23:27 +0100)]
Properly delete directory and all children when updating folder metadatas in database manager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAlso report all new, updated, and deleted metadatas from updateItemMetadatas in Nextc...
Claudio Cambra [Wed, 8 Mar 2023 16:57:43 +0000 (17:57 +0100)]
Also report all new, updated, and deleted metadatas from updateItemMetadatas in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoReport new item metadatas and updated item metadatas in processItemMetadatasToUpdate...
Claudio Cambra [Wed, 8 Mar 2023 16:51:59 +0000 (17:51 +0100)]
Report new item metadatas and updated item metadatas in processItemMetadatasToUpdate in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoReport deletedItemMetadatas in processItemMetadatasToDelete in NextcloudFilesDatabase...
Claudio Cambra [Wed, 8 Mar 2023 16:43:55 +0000 (17:43 +0100)]
Report deletedItemMetadatas in processItemMetadatasToDelete in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle readFileOrFolder of file vs folder
Claudio Cambra [Tue, 7 Mar 2023 23:21:23 +0000 (00:21 +0100)]
Properly handle readFileOrFolder of file vs folder

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoKeep track of additional details about enumerating item in the FileProviderEnumerator
Claudio Cambra [Tue, 7 Mar 2023 22:30:50 +0000 (23:30 +0100)]
Keep track of additional details about enumerating item in the FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoEnumerate materialised items when system requests working set
Claudio Cambra [Tue, 7 Mar 2023 21:40:52 +0000 (22:40 +0100)]
Enumerate materialised items when system requests working set

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to get local file metadatas for an account in NextcloudItemMet...
Claudio Cambra [Tue, 7 Mar 2023 21:06:46 +0000 (22:06 +0100)]
Add convenience method to get local file metadatas for an account in NextcloudItemMetadataTable form in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to get all local file metadatas for an account in NextcloudFil...
Claudio Cambra [Tue, 7 Mar 2023 20:48:08 +0000 (21:48 +0100)]
Add convenience method to get all local file metadatas for an account in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly report progress for download and upload operations in FileProviderExtension
Claudio Cambra [Tue, 7 Mar 2023 19:19:10 +0000 (20:19 +0100)]
Properly report progress for download and upload operations in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd a Progress extension with convenience methods for copying progress data from...
Claudio Cambra [Tue, 7 Mar 2023 19:18:23 +0000 (20:18 +0100)]
Add a Progress extension with convenience methods for copying progress data from one progress object to another

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoPrevent creation of symbolic link items in FileProviderExtension
Claudio Cambra [Tue, 7 Mar 2023 12:59:18 +0000 (13:59 +0100)]
Prevent creation of symbolic link items in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle version item requests in fetchContents of FileProviderExtension per the docume...
Claudio Cambra [Tue, 7 Mar 2023 12:47:01 +0000 (13:47 +0100)]
Handle version item requests in fetchContents of FileProviderExtension per the documentation

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoClarify current use of sync anchor in FileProviderEnumerator
Claudio Cambra [Tue, 7 Mar 2023 00:40:17 +0000 (01:40 +0100)]
Clarify current use of sync anchor in FileProviderEnumerator

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoCorrectly fulfill delete item requests on server
Claudio Cambra [Tue, 7 Mar 2023 00:15:09 +0000 (01:15 +0100)]
Correctly fulfill delete item requests on server

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoSupport reparenting file provider items correctly
Claudio Cambra [Mon, 6 Mar 2023 18:11:34 +0000 (19:11 +0100)]
Support reparenting file provider items correctly

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle several modify item fields at once in FileProviderExtension
Claudio Cambra [Mon, 6 Mar 2023 17:18:46 +0000 (18:18 +0100)]
Properly handle several modify item fields at once in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoOnly try upload of modified item in FileProviderExtension if that had its contents...
Claudio Cambra [Mon, 6 Mar 2023 15:58:36 +0000 (16:58 +0100)]
Only try upload of modified item in FileProviderExtension if that had its contents changed and we have a valid content url

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoHandle renaming of both files and folders correctly in FileProviderExtension
Claudio Cambra [Mon, 6 Mar 2023 15:18:49 +0000 (16:18 +0100)]
Handle renaming of both files and folders correctly in FileProviderExtension

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd convenience method to rename file item metadatas in database
Claudio Cambra [Mon, 6 Mar 2023 14:52:58 +0000 (15:52 +0100)]
Add convenience method to rename file item metadatas in database

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoProperly handle renaming folders in FileProviderExtension modifyItem
Claudio Cambra [Mon, 27 Feb 2023 22:04:36 +0000 (23:04 +0100)]
Properly handle renaming folders in FileProviderExtension modifyItem

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd methods to rename directory metadata and propagate modifications to all children...
Claudio Cambra [Mon, 27 Feb 2023 22:03:50 +0000 (23:03 +0100)]
Add methods to rename directory metadata and propagate modifications to all children in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
3 years agoAdd methods to delete metadata types in NextcloudFilesDatabaseManager
Claudio Cambra [Mon, 27 Feb 2023 17:24:12 +0000 (18:24 +0100)]
Add methods to delete metadata types in NextcloudFilesDatabaseManager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
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>