/*
* 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 IOperationSequence
{
///
/// The progress indicator to be used when performing any action. Will be ignored if null.
///
IProgressIndicator ProgressIndicator { set; }
///
/// Tries to perform the operations of this sequence. Returns true if the procedure was successful, false otherwise.
///
bool TryPerform();
///
/// Tries to repeat the operations of this sequence. Returns true if the procedure was successful, false otherwise.
///
bool TryRepeat();
///
/// Tries to revert the operations of this sequence. Returns true if the procedure was successful, false otherwise.
///
bool TryRevert();
}
}