2017-07-07 15:46:32 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-07 15:46:32 +02:00
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Applications.Contracts;
|
|
|
|
|
using SafeExamBrowser.Client.Contracts;
|
|
|
|
|
using SafeExamBrowser.Configuration.Contracts;
|
|
|
|
|
using SafeExamBrowser.Configuration.Contracts.Settings;
|
|
|
|
|
using SafeExamBrowser.I18n.Contracts;
|
|
|
|
|
using SafeExamBrowser.Logging.Contracts;
|
|
|
|
|
using SafeExamBrowser.UserInterface.Contracts.Browser;
|
|
|
|
|
using SafeExamBrowser.UserInterface.Contracts.Shell;
|
|
|
|
|
using SafeExamBrowser.UserInterface.Contracts.Windows;
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.UserInterface.Contracts
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
2019-03-15 09:44:17 +01:00
|
|
|
|
/// The factory for user interface elements which cannot be instantiated at the composition root.
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// </summary>
|
2018-03-14 12:07:20 +01:00
|
|
|
|
public interface IUserInterfaceFactory
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2017-08-02 10:13:23 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new about window displaying information about the currently running application version.
|
|
|
|
|
/// </summary>
|
2018-06-29 09:50:20 +02:00
|
|
|
|
IWindow CreateAboutWindow(AppConfig appConfig);
|
2017-08-02 10:13:23 +02:00
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
2019-03-08 11:43:52 +01:00
|
|
|
|
/// Creates an application control for the specified location, initialized with the given application information.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2019-03-08 11:43:52 +01:00
|
|
|
|
IApplicationControl CreateApplicationControl(IApplicationInfo info, Location location);
|
2017-07-17 16:59:50 +02:00
|
|
|
|
|
2019-08-15 10:46:47 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a system control which allows to change the audio settings of the computer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ISystemAudioControl CreateAudioControl(Location location);
|
|
|
|
|
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// <summary>
|
2017-07-31 20:22:53 +02:00
|
|
|
|
/// Creates a new browser window loaded with the given browser control and settings.
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// </summary>
|
2019-01-23 09:37:47 +01:00
|
|
|
|
IBrowserWindow CreateBrowserWindow(IBrowserControl control, BrowserSettings settings, bool isMainWindow);
|
2017-07-24 17:31:28 +02:00
|
|
|
|
|
2018-06-27 14:02:16 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a system control which allows to change the keyboard layout of the computer.
|
|
|
|
|
/// </summary>
|
2019-03-12 16:18:27 +01:00
|
|
|
|
ISystemKeyboardLayoutControl CreateKeyboardLayoutControl(Location location);
|
2018-06-27 14:02:16 +02:00
|
|
|
|
|
2017-08-07 12:23:56 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new log window which runs on its own thread.
|
|
|
|
|
/// </summary>
|
2018-02-07 13:25:49 +01:00
|
|
|
|
IWindow CreateLogWindow(ILogger logger);
|
2017-08-07 12:23:56 +02:00
|
|
|
|
|
2017-07-19 14:43:54 +02:00
|
|
|
|
/// <summary>
|
2019-03-08 15:56:38 +01:00
|
|
|
|
/// Creates a notification control for the specified location, initialized with the given notification information.
|
2017-07-19 14:43:54 +02:00
|
|
|
|
/// </summary>
|
2019-03-08 15:56:38 +01:00
|
|
|
|
INotificationControl CreateNotificationControl(INotificationInfo info, Location location);
|
2017-08-15 15:30:31 +02:00
|
|
|
|
|
2017-09-13 08:33:12 +02:00
|
|
|
|
/// <summary>
|
2018-06-27 14:02:16 +02:00
|
|
|
|
/// Creates a password dialog with the given message and title.
|
2017-09-13 08:33:12 +02:00
|
|
|
|
/// </summary>
|
2018-06-27 14:02:16 +02:00
|
|
|
|
IPasswordDialog CreatePasswordDialog(string message, string title);
|
2017-09-13 08:33:12 +02:00
|
|
|
|
|
2019-01-10 10:04:30 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a password dialog with the given message and title.
|
|
|
|
|
/// </summary>
|
|
|
|
|
IPasswordDialog CreatePasswordDialog(TextKey message, TextKey title);
|
|
|
|
|
|
2017-08-15 15:30:31 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a system control displaying the power supply status of the computer.
|
|
|
|
|
/// </summary>
|
2019-03-14 10:28:21 +01:00
|
|
|
|
ISystemPowerSupplyControl CreatePowerSupplyControl(Location location);
|
2017-07-19 14:43:54 +02:00
|
|
|
|
|
2018-01-30 14:41:36 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a new runtime window which runs on its own thread.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-06-29 09:50:20 +02:00
|
|
|
|
IRuntimeWindow CreateRuntimeWindow(AppConfig appConfig);
|
2018-01-30 14:41:36 +01:00
|
|
|
|
|
2017-07-17 16:59:50 +02:00
|
|
|
|
/// <summary>
|
2017-07-24 15:29:17 +02:00
|
|
|
|
/// Creates a new splash screen which runs on its own thread.
|
2017-07-17 16:59:50 +02:00
|
|
|
|
/// </summary>
|
2018-06-29 09:50:20 +02:00
|
|
|
|
ISplashScreen CreateSplashScreen(AppConfig appConfig = null);
|
2017-11-13 10:26:30 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a system control which allows to change the wireless network connection of the computer.
|
|
|
|
|
/// </summary>
|
2019-03-15 09:44:17 +01:00
|
|
|
|
ISystemWirelessNetworkControl CreateWirelessNetworkControl(Location location);
|
2017-07-07 15:46:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|