2017-07-07 15:46:32 +02:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-07-14 10:28:59 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.I18n;
|
2017-07-07 15:46:32 +02:00
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Contracts.UserInterface
|
|
|
|
|
{
|
2017-07-14 10:28:59 +02:00
|
|
|
|
public interface ISplashScreen
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Closes the splash screen.
|
|
|
|
|
/// </summary>
|
2017-07-07 15:46:32 +02:00
|
|
|
|
void Close();
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set the maximum of the splash screen's progress bar.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
void SetMaxProgress(int max);
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Shows the splash screen to the user.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
void Show();
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the progress bar of the splash screen according to the specified amount.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void UpdateProgress(int amount = 1);
|
2017-07-14 10:28:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Updates the status text of the splash screen.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void UpdateText(Key key);
|
2017-07-07 15:46:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|