2017-07-21 10:04:27 +02:00
|
|
|
|
/*
|
2018-01-16 08:24:00 +01:00
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-21 10:04:27 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface;
|
|
|
|
|
|
2018-02-01 08:37:12 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Behaviour.Operations
|
2017-07-21 10:04:27 +02:00
|
|
|
|
{
|
|
|
|
|
public interface IOperation
|
|
|
|
|
{
|
2018-01-19 14:04:12 +01:00
|
|
|
|
/// <summary>
|
2018-02-02 09:18:35 +01:00
|
|
|
|
/// Determines whether the procedure to which this operation belongs to should be aborted.
|
2018-01-19 14:04:12 +01:00
|
|
|
|
/// </summary>
|
2018-02-01 08:37:12 +01:00
|
|
|
|
bool Abort { get; }
|
2018-01-19 14:04:12 +01:00
|
|
|
|
|
2017-07-21 10:04:27 +02:00
|
|
|
|
/// <summary>
|
2018-02-02 09:18:35 +01:00
|
|
|
|
/// The progress indicator to be used to show status information to the user. Will be ignored if <c>null</c>.
|
2017-07-21 10:04:27 +02:00
|
|
|
|
/// </summary>
|
2018-02-02 09:18:35 +01:00
|
|
|
|
IProgressIndicator ProgressIndicator { set; }
|
2017-07-21 10:04:27 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Performs the operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Perform();
|
|
|
|
|
|
2018-02-01 08:37:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Repeats the operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Repeat();
|
|
|
|
|
|
2017-07-21 10:04:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reverts all changes which were made when performing the operation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Revert();
|
|
|
|
|
}
|
|
|
|
|
}
|