using System; using JetBrains.Annotations; using Unity.Cloud.Collaborate.Components; using Unity.Cloud.Collaborate.Presenters; namespace Unity.Cloud.Collaborate.Views { internal interface IMainView : IView { /// /// Add or update an alert with the provided id. /// /// Id of the alert to add or update. /// Level of severity. /// Message for the alert. /// Optional button with text and a callback. void AddAlert([NotNull] string id, AlertBox.AlertLevel level, [NotNull] string message, (string text, Action action)? button = null); /// /// Remove alert with the provided id. /// /// Id of the alert to remove. void RemoveAlert([NotNull] string id); /// /// Switch to the given tab index. /// /// Index of tab to switch to. void SetTab(int index); /// /// Display progress view. Should only be called once, so only call when progress starts. /// void AddOperationProgress(); /// /// Hide progress view. Should only be called once, so only call when progress finishes. /// void RemoveOperationProgress(); /// /// Update the progress value displayed in the progress view. /// /// Title of the job in progress. /// Description/details/status of the job in progress. /// Current percentage completion of the job in progress. Used for percentage display. /// Current number of job items completed. Used for discrete display. /// Total number of job items completed. Used for discrete display. /// True if the progress bar uses percentage, false if its discrete completed-of-total. /// True if the job in progress can be cancelled. void SetOperationProgress(string title, string details, int percentage, int completed, int total, bool isPercentage, bool canCancel); /// /// Clear the current back navigation. /// void ClearBackNavigation(); /// /// Set back navigation to be displayed with the provided text. /// /// Destination of the back navigation void DisplayBackNavigation([NotNull] string text); } }