/* * 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; using SafeExamBrowser.Contracts.Configuration.Settings; using SafeExamBrowser.Contracts.Logging; using SafeExamBrowser.Contracts.UserInterface.Browser; using SafeExamBrowser.Contracts.UserInterface.Taskbar; using SafeExamBrowser.Contracts.UserInterface.Windows; namespace SafeExamBrowser.Contracts.UserInterface { /// /// 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. /// public interface IUserInterfaceFactory { /// /// Creates a new about window displaying information about the currently running application version. /// IWindow CreateAboutWindow(RuntimeInfo runtimeInfo); /// /// Creates a taskbar button, initialized with the given application information. /// IApplicationButton CreateApplicationButton(IApplicationInfo info); /// /// Creates a new browser window loaded with the given browser control and settings. /// IBrowserWindow CreateBrowserWindow(IBrowserControl control, BrowserSettings settings); /// /// Creates a new log window which runs on its own thread. /// IWindow CreateLogWindow(ILogger logger); /// /// Creates a taskbar notification, initialized with the given notification information. /// INotificationButton CreateNotification(INotificationInfo info); /// /// Creates a system control which allows to change the keyboard layout of the computer. /// ISystemKeyboardLayoutControl CreateKeyboardLayoutControl(); /// /// Creates a system control displaying the power supply status of the computer. /// ISystemPowerSupplyControl CreatePowerSupplyControl(); /// /// Creates a new runtime window which runs on its own thread. /// /// IRuntimeWindow CreateRuntimeWindow(RuntimeInfo runtimeInfo); /// /// Creates a new splash screen which runs on its own thread. /// ISplashScreen CreateSplashScreen(RuntimeInfo runtimeInfo = null); /// /// Creates a system control which allows to change the wireless network connection of the computer. /// ISystemWirelessNetworkControl CreateWirelessNetworkControl(); } }