Updated synchronization progress implementation.
This commit is contained in:
@@ -1,35 +1,43 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using Wino.Core.Domain.Entities.Mail;
|
||||
using Wino.Core.Domain.Entities.Shared;
|
||||
using Wino.Core.Domain.Models.Synchronization;
|
||||
|
||||
namespace Wino.Core.Domain.Interfaces;
|
||||
|
||||
public interface IAccountMenuItem : IMenuItem
|
||||
{
|
||||
bool IsEnabled { get; set; }
|
||||
|
||||
bool IsSynchronizationInProgress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Calculated synchronization progress percentage (0-100). -1 for indeterminate.
|
||||
/// Calculated synchronization progress percentage (0-100).
|
||||
/// </summary>
|
||||
double SynchronizationProgress { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Progress value clamped for XAML progress controls.
|
||||
/// </summary>
|
||||
double SynchronizationProgressValue { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Total items to sync. 0 for indeterminate progress.
|
||||
/// </summary>
|
||||
int TotalItemsToSync { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Remaining items to sync.
|
||||
/// </summary>
|
||||
int RemainingItemsToSync { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Current synchronization status message.
|
||||
/// </summary>
|
||||
string SynchronizationStatus { get; set; }
|
||||
|
||||
|
||||
int UnreadItemCount { get; set; }
|
||||
IEnumerable<MailAccount> HoldingAccounts { get; }
|
||||
void ApplySynchronizationProgress(AccountSynchronizationProgress progress);
|
||||
void UpdateAccount(MailAccount account);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user