2023-03-03 19:25:33 +00:00
|
|
|
|
/* IUpdateProgress
|
|
|
|
|
* License: NCSA Open Source License
|
|
|
|
|
*
|
2024-05-21 20:15:19 +01:00
|
|
|
|
* Copyright: SPT
|
2023-03-03 19:25:33 +00:00
|
|
|
|
* AUTHORS:
|
|
|
|
|
* waffle.lord
|
|
|
|
|
*/
|
|
|
|
|
|
2024-05-21 20:15:19 +01:00
|
|
|
|
using SPT.Launcher.Models.Launcher;
|
2023-03-03 19:25:33 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2024-05-21 20:15:19 +01:00
|
|
|
|
namespace SPT.Launcher.Interfaces
|
2023-03-03 19:25:33 +00:00
|
|
|
|
{
|
|
|
|
|
public interface IUpdateProgress
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The task that will report progress to the <see cref="Custom_Controls.Dialogs.ProgressDialog"/>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Action ProgressableTask { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Cancel the ProgressableTask with a reason.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public event EventHandler<object> TaskCancelled;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The <see cref="Custom_Controls.Dialogs.ProgressDialog"/> will subscribe to this event to update its main progress bar (top bar)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public event EventHandler<ProgressInfo> ProgressChanged;
|
|
|
|
|
}
|
|
|
|
|
}
|