- Paths were being set in the wrong way in the local file tree.
- TODO: refactor it. It can be done better.
Signed-off-by: Camila San <hello@camila.codes>
- Folders that are set to online get their files ignored by the sync
engine.
- Minor change: remove qdebug message from csync.
Signed-off-by: Camila San <hello@camila.codes>
- Checks if files are offline before downloading it.
- Updates last access once syncing is done.
- In vfs_windows calls for syncing only where is needed: openfile,
delete and write (WIP)
Signed-off-by: Camila San <hello@camila.codes>
- Checks if files are offline before downloading it.
- Updates last access once syncing is done.
- In vfs_windows calls for syncing only where is needed: openfile,
delete and write (WIP)
Signed-off-by: Camila San <hello@camila.codes>
- For the database we needed to use the relative path to the file.
- Fixes path before we do requests to the sync engine.
Signed-off-by: Camila San <hello@camila.codes>
- Refactores solution to get file information on Windows.
- Do not update the local tree again after finishing sync.
Signed-off-by: Camila San <hello@camila.codes>
- TODO: remote discovery times out leading the sync engine to think that there are new files instead of syncing them correctly.
Signed-off-by: Camila San <hello@camila.codes>
- Uses QMutex + QWaitCondition to handle requestes to the sync engine.
- Refactores most of the SyncWrapper.
- Defines time out for the remote discoveryphase (TODO).
Signed-off-by: Camila San <hello@camila.codes>
- Integrates sync with currrent FUSE code - still needs fixing.
- Fixes return of getProcessName function by using QString.
Signed-off-by: Camila San <hello@camila.codes>
- Integrates sync with currrent FUSE code - still needs fixing.
- Fixes return of getProcessName function by using QString.
Signed-off-by: Camila San <hello@camila.codes>
Also removes unused code for start syncing with fuse.
Now it is using the same StartSync function as before.
Signed-off-by: Camila San <hello@camila.codes>
It uses the same logic used previously to do the local discovery.
This time it process one single file: csync_update_file -> csync_vio_opendir (only to get the handle) ->
csync_vio_read_file (creates csync_file_stat_t) -> csync_walker -> _csync_detect_update.
Signed-off-by: Camila San <hello@camila.codes>
This version still uses the timer and the usual discovery to sync files to the cache.
Forcing sync is also possible via the UI. Since we still have 0 byte files created in the cache,
the sync engine interprets them as conflict.
Signed-off-by: Camila San <hello@camila.codes>
- Adds icons to Share link and to save password on share dialog.
- Changes wording of the menu options for sharing link.
- Adds functionality to the new menu (mostly permissions).
- More widget size and size policy adjustments.
Signed-off-by: Camila San <hello@camila.codes>
- First text input to search for users,then share link and then the list
of users.
- Adjusts size and scroll bar for sharees list.
- Adds option 'can share' to 3 dots menu in share user/group widget.
Signed-off-by: Camila San <hello@camila.codes>
- Adds select with permissions to share dialog on the user/group search.
- Changes order of widgets, removes excess of text and do not display empty widgets.
- Share user/group widget: replaces combo box for tool button with permissions.
- Using Fixed as size policy it gives a much smoother user experience
when windows size dinamically changes.
Signed-off-by: Camila San <hello@camila.codes>
- The crash was happening when the user could not connect and it would
crash on trying to retrieve and display the navigation apps.
- Checks AccountStatePtr earlier in the function
slotNavigationAppsFetched.
- Cast of pointer stored in QVariant to QMenu was not done correctly -
qvariant_cast works best for user type defined or QMetaType known to
QVariant.
Signed-off-by: Camila San <hello@camila.codes>
- Minor fix: gives less space for long text that needed ellipses which
was not showing and set right margin because otherwise text was not
painted correctly and completly.
Signed-off-by: Camila San <hello@camila.codes>
- Also fixes the click on each activity: the user had to click twice -
one to select the row and then one click to open file manager or
browser.
Signed-off-by: Camila San <hello@camila.codes>
- Attempts to implement slot as it was in the old IssuesWidget.
- It should clean up the activity list when needed - e.g. when file
conflict was solved.
Signed-off-by: Camila San <hello@camila.codes>
- Fixes crash when dismissing notification - notification was being
removed from the wrong list.
- Minor changes: removes AccountStatePtr where it was needed anymore now
that ActivityListModel has an _accountState, it doesn't need to be
checked for each activity/notification.
Signed-off-by: Camila San <hello@camila.codes>
- This follows what the enums already being used SynResult::Status and
SyncFileItem::Status.
- Do not display buttons for FileErrorTypes - since they are errors on
local syncing, there is nothing to do in the server.
Signed-off-by: Camila San <hello@camila.codes>
- Their size was not correctly calculated so it was hard to filter the
clicks on the list. User had to click multiple times before clicking on
the right acceptable area.
Signed-off-by: Camila San <hello@camila.codes>
- With the merging of activities and notifications the copy to clipboard
function got broken. Had to put it back as it was before.
- The output text from the clipboard was almost unreadeable. Ajusted the
space between texts and used separator '-' instead of ','.
- Minor: cleans up comments.
Signed-off-by: Camila San <hello@camila.codes>
- Stores object_type from the api response to check if notification is a
call so the primary button text and action is 'Join'.
- Puts strings into consts.
- Minor change: Improves comments on ActivityListModel.
Signed-off-by: Camila San <hello@camila.codes>
- Stores object_type form the api response to check if notification is
remote_share, so the primary button text is 'accept' instead of 'more
information'.
Signed-off-by: Camila San <hello@camila.codes>
- Fixes adding/removing accounts with separator in the toolbar -
accounts were not added in the right order and removing was not
including the separator.
- Fixes button sizes in the activities list - the buttons were too small
for the text.
Signed-off-by: Camila San <hello@camila.codes>
- The path to the file wa being stored in the wrong activity property.
It was in the action link when it should be in the file.
- Minor: comments out the display of issues and protocol widget.
Signed-off-by: Camila San <hello@camila.codes>
- Errors will always be on top, then Notifications comes next and then Activities for last.
- Adds 2 new types of Activity: NotificationType and ErrorType.
- ActivityListModel and ActivityWidget stores AccountState to connect user and widget.
Signed-off-by: Camila San <hello@camila.codes>