seb-win-refactoring/SafeExamBrowser.Contracts/UserInterface/IUserInterfaceFactory.cs

70 lines
2.4 KiB
C#
Raw Normal View History

/*
* 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.Configuration;
2017-07-28 14:52:15 +02:00
using SafeExamBrowser.Contracts.Configuration.Settings;
2017-08-07 12:23:56 +02:00
using SafeExamBrowser.Contracts.Logging;
using SafeExamBrowser.Contracts.UserInterface.Taskbar;
namespace SafeExamBrowser.Contracts.UserInterface
{
public interface IUserInterfaceFactory : IMessageBox
{
2017-08-02 10:13:23 +02:00
/// <summary>
/// Creates a new about window displaying information about the currently running application version.
/// </summary>
2018-02-15 15:42:54 +01:00
IWindow CreateAboutWindow(RuntimeInfo runtimeInfo);
2017-08-02 10:13:23 +02:00
/// <summary>
/// Creates a taskbar button, initialized with the given application information.
/// </summary>
IApplicationButton CreateApplicationButton(IApplicationInfo info);
/// <summary>
/// Creates a new browser window loaded with the given browser control and settings.
/// </summary>
2018-02-15 15:42:54 +01:00
IBrowserWindow CreateBrowserWindow(IBrowserControl control, BrowserSettings settings);
2017-08-07 12:23:56 +02:00
/// <summary>
/// Creates a new log window which runs on its own thread.
/// </summary>
IWindow CreateLogWindow(ILogger logger);
2017-08-07 12:23:56 +02:00
/// <summary>
2017-07-24 15:29:17 +02:00
/// Creates a taskbar notification, initialized with the given notification information.
/// </summary>
INotificationButton CreateNotification(INotificationInfo info);
/// <summary>
/// Creates a system control which allows to change the keyboard layout of the computer.
/// </summary>
ISystemKeyboardLayoutControl CreateKeyboardLayoutControl();
/// <summary>
/// Creates a system control displaying the power supply status of the computer.
/// </summary>
ISystemPowerSupplyControl CreatePowerSupplyControl();
/// <summary>
/// Creates a new runtime window which runs on its own thread.
/// </summary>
/// <returns></returns>
2018-02-15 15:42:54 +01:00
IRuntimeWindow CreateRuntimeWindow(RuntimeInfo runtimeInfo);
/// <summary>
2017-07-24 15:29:17 +02:00
/// Creates a new splash screen which runs on its own thread.
/// </summary>
ISplashScreen CreateSplashScreen(RuntimeInfo runtimeInfo = null);
/// <summary>
/// Creates a system control which allows to change the wireless network connection of the computer.
/// </summary>
ISystemWirelessNetworkControl CreateWirelessNetworkControl();
}
}