using System;
namespace MusicMetaTagger.UI
{
///
/// This defines an interface which can be implemented by UI elements which indicate the progress of a long operation. (See ProgressWindow for a typical implementation)
///
public interface IProgressCallback
{
///
/// If this property is true, then you should abort work
///
bool IsAborting { get; }
///
/// Call this method from the worker thread to initialize the progress callback, without setting the range
///
void Begin();
///
/// Call this method from the worker thread to reset the range in the progress callback
///
void SetRange(int minimum, int maximum);
///
/// Call this method from the worker thread to update the progress text.
///
void SetText(String text);
///
/// Call this method from the worker thread to step the progress meter to a particular value.
///
void Increment(int val);
}
}