/* * Copyright (c) 2020 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.I18n.Contracts; namespace SafeExamBrowser.UserInterface.Contracts { /// /// A progress indicator is a user interface element which displays the (completion) status of a procedure to the user. /// public interface IProgressIndicator { /// /// Increases the current progress value by 1. /// void Progress(); /// /// Decreases the current progress value by 1. /// void Regress(); /// /// Sets the style of the progress indicator to indeterminate (Progress and Regress won't have any effect when called). /// void SetIndeterminate(); /// /// Sets the maximum progress value. /// void SetMaxValue(int max); /// /// Sets the current progress value. /// void SetValue(int value); /// /// Updates the status text. If the busy flag is set, an animation will be shown to indicate a long-running operation. /// void UpdateStatus(TextKey key, bool busyIndication = false); } }