/*
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
*
* 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;
namespace SafeExamBrowser.Contracts.Behaviour.Operations
{
public interface IOperation
{
///
/// Determines whether the procedure to which this operation belongs should be aborted.
///
bool Abort { get; }
///
/// The splash screen to be used to show status information to the user.
///
ISplashScreen SplashScreen { set; }
///
/// Performs the operation.
///
void Perform();
///
/// Repeats the operation.
///
void Repeat();
///
/// Reverts all changes which were made when performing the operation.
///
void Revert();
}
}