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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
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;
|
2018-03-14 12:07:20 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Browser;
|
2017-08-15 15:30:31 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Taskbar;
|
2018-03-14 12:07:20 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Windows;
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Contracts.UserInterface
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The factory for user interface elements which cannot be instantiated at the composition root. IMPORTANT: To allow for decoupling
|
|
|
|
|
/// from the particular user interface framework in use, all dynamically generated user interface elements must be generated by this
|
|
|
|
|
/// factory.
|
|
|
|
|
/// </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>
|
|
|
|
|
/// Creates a taskbar button, initialized with the given application information.
|
|
|
|
|
/// </summary>
|
2017-08-15 15:30:31 +02:00
|
|
|
|
IApplicationButton CreateApplicationButton(IApplicationInfo info);
|
2017-07-17 16:59:50 +02:00
|
|
|
|
|
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>
|
2018-02-15 15:42:54 +01:00
|
|
|
|
IBrowserWindow CreateBrowserWindow(IBrowserControl control, BrowserSettings settings);
|
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>
|
|
|
|
|
ISystemKeyboardLayoutControl CreateKeyboardLayoutControl();
|
|
|
|
|
|
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>
|
2017-07-24 15:29:17 +02:00
|
|
|
|
/// Creates a taskbar notification, initialized with the given notification information.
|
2017-07-19 14:43:54 +02:00
|
|
|
|
/// </summary>
|
2017-08-15 15:30:31 +02:00
|
|
|
|
INotificationButton CreateNotification(INotificationInfo info);
|
|
|
|
|
|
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
|
|
|
|
|
2017-08-15 15:30:31 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates a system control displaying the power supply status of the computer.
|
|
|
|
|
/// </summary>
|
|
|
|
|
ISystemPowerSupplyControl CreatePowerSupplyControl();
|
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>
|
|
|
|
|
ISystemWirelessNetworkControl CreateWirelessNetworkControl();
|
2017-07-07 15:46:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|