2017-05-28 00:31:46 +01:00
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// The Disc Image Chef
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Delegates.cs
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
2017-05-28 00:31:46 +01:00
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Component : Core algorithms.
|
2017-05-28 00:31:46 +01:00
|
|
|
|
//
|
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
//
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Delegates to communicate with user interface.
|
2017-05-28 00:31:46 +01:00
|
|
|
|
//
|
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
|
// it under the terms of the GNU General Public License as
|
|
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
|
//
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
//
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-12-19 03:50:57 +00:00
|
|
|
|
// Copyright © 2011-2018 Natalia Portillo
|
2017-05-28 00:31:46 +01:00
|
|
|
|
// ****************************************************************************/
|
2017-12-19 03:50:57 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
namespace DiscImageChef.Core
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Initializates a progress indicator (e.g. makes a progress bar visible)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void InitProgressHandler();
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Updates a progress indicator with text
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void UpdateProgressHandler(string text, long current, long maximum);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Pulses a progress indicator with indeterminate boundaries
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void PulseProgressHandler(string text);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Uninitializates a progress indicator (e.g. adds a newline to the console)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void EndProgressHandler();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Initializates a secondary progress indicator (e.g. makes a progress bar visible)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void InitProgressHandler2();
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Updates a secondary progress indicator with text
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void UpdateProgressHandler2(string text, long current, long maximum);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Pulses a secondary progress indicator with indeterminate boundaries
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void PulseProgressHandler2(string text);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Uninitializates a secondary progress indicator (e.g. adds a newline to the console)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void EndProgressHandler2();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Initializates two progress indicators (e.g. makes a progress bar visible)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void InitTwoProgressHandler();
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Updates two progress indicators with text
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
2017-12-19 20:33:03 +00:00
|
|
|
|
public delegate void UpdateTwoProgressHandler(string text, long current, long maximum, string text2, long current2,
|
2018-06-22 08:08:38 +01:00
|
|
|
|
long maximum2);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Pulses a progress indicator with indeterminate boundaries
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void PulseTwoProgressHandler(string text, string text2);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Uninitializates a progress indicator (e.g. adds a newline to the console)
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void EndTwoProgressHandler();
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-12-23 17:41:23 +00:00
|
|
|
|
/// Updates a status indicator
|
2017-05-28 00:31:46 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public delegate void UpdateStatusHandler(string text);
|
2017-12-19 20:33:03 +00:00
|
|
|
|
}
|