/* * Copyright (c) 2019 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.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.SystemComponents.Contracts.Audio; using SafeExamBrowser.SystemComponents.Contracts.Keyboard; using SafeExamBrowser.SystemComponents.Contracts.PowerSupply; using SafeExamBrowser.SystemComponents.Contracts.WirelessNetwork; using SafeExamBrowser.UserInterface.Contracts.Browser; using SafeExamBrowser.UserInterface.Contracts.Shell; using SafeExamBrowser.UserInterface.Contracts.Windows; namespace SafeExamBrowser.UserInterface.Contracts { /// /// The factory for user interface elements which cannot be instantiated at the composition root. /// public interface IUserInterfaceFactory { /// /// Creates a new about window displaying information about the currently running application version. /// IWindow CreateAboutWindow(AppConfig appConfig); /// /// Creates an application control for the specified application and location. /// IApplicationControl CreateApplicationControl(IApplication application, Location location); /// /// Creates a system control which allows to change the audio settings of the computer. /// ISystemControl CreateAudioControl(IAudio audio, Location location); /// /// Creates a new browser window loaded with the given browser control and settings. /// IBrowserWindow CreateBrowserWindow(IBrowserControl control, BrowserSettings settings, bool isMainWindow); /// /// Creates a system control which allows to change the keyboard layout of the computer. /// ISystemControl CreateKeyboardLayoutControl(IKeyboard keyboard, Location location); /// /// Creates a new log window which runs on its own thread. /// IWindow CreateLogWindow(ILogger logger); /// /// Creates a notification control for the specified location, initialized with the given notification information. /// INotificationControl CreateNotificationControl(INotificationInfo info, Location location); /// /// Creates a password dialog with the given message and title. /// IPasswordDialog CreatePasswordDialog(string message, string title); /// /// Creates a password dialog with the given message and title. /// IPasswordDialog CreatePasswordDialog(TextKey message, TextKey title); /// /// Creates a system control displaying the power supply status of the computer. /// ISystemControl CreatePowerSupplyControl(IPowerSupply powerSupply, Location location); /// /// Creates a new runtime window which runs on its own thread. /// /// IRuntimeWindow CreateRuntimeWindow(AppConfig appConfig); /// /// Creates a new splash screen which runs on its own thread. /// ISplashScreen CreateSplashScreen(AppConfig appConfig = null); /// /// Creates a system control which allows to change the wireless network connection of the computer. /// ISystemControl CreateWirelessNetworkControl(IWirelessAdapter wirelessAdapter, Location location); } }