Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.7.0]

* Added enum `SyncFilesState` with possible file synchronization statuses.
* Added `SyncStateInfo.syncFilesState` getter.

## [1.6.0]

* Added parameter `manual` to `synchronize()` method.
Expand Down
22 changes: 22 additions & 0 deletions lib/src/sync_state_info.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// Synchronization status information, including errors.
abstract class SyncStateInfo {
SyncState get state;
SyncFilesState get syncFilesState;
SyncError? get syncError;
Object? get errorData;

Expand Down Expand Up @@ -108,3 +109,24 @@ enum SyncState {
/// Waiting for first synchronization.
waiting,
}

/// Files sync status.
enum SyncFilesState {
// Initialization.
initializing,

// Synchronization was not performed.
none,

/// Synchronization in progress.
pending,

// Synchronization was completed successfully.
ok,

// The last synchronization attempt failed with an error.
failed,

// Synchronization is disabled.
disabled,
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: in_sync_interface
description: An interface for synchronization functional. Used by in_sync.
version: 1.6.0
version: 1.7.0
homepage: https://github.com/innim/
repository: https://github.com/Innim/in_sync_interface
issue_tracker: https://github.com/Innim/in_sync_interface/issues
Expand Down