/* * Copyright (c) 2024 ETH Zürich, IT Services * * 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 System.Collections.Generic; using SafeExamBrowser.Applications.Contracts; using SafeExamBrowser.Configuration.Contracts; using SafeExamBrowser.Core.Contracts.Notifications; using SafeExamBrowser.I18n.Contracts; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Proctoring.Contracts; using SafeExamBrowser.Server.Contracts.Data; using SafeExamBrowser.Settings.Browser; using SafeExamBrowser.Settings.Proctoring; using SafeExamBrowser.Settings.UserInterface; using SafeExamBrowser.SystemComponents.Contracts.Audio; using SafeExamBrowser.SystemComponents.Contracts.Keyboard; using SafeExamBrowser.SystemComponents.Contracts.Network; using SafeExamBrowser.SystemComponents.Contracts.PowerSupply; using SafeExamBrowser.UserInterface.Contracts.Browser; using SafeExamBrowser.UserInterface.Contracts.Proctoring; using SafeExamBrowser.UserInterface.Contracts.Shell; using SafeExamBrowser.UserInterface.Contracts.Windows; using SafeExamBrowser.UserInterface.Contracts.Windows.Data; 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 a new action center. /// IActionCenter CreateActionCenter(); /// /// 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, ILogger logger); /// /// Creates a credentials dialog for the given purpose and with the specified message and title. /// ICredentialsDialog CreateCredentialsDialog(CredentialsDialogPurpose purpose, string message, string title); /// /// Creates an exam selection dialog for the given exams. /// IExamSelectionDialog CreateExamSelectionDialog(IEnumerable exams); /// /// Creates a system control which allows to change the keyboard layout of the computer. /// ISystemControl CreateKeyboardLayoutControl(IKeyboard keyboard, Location location); /// /// Creates a lock screen with the given message, title and options. /// ILockScreen CreateLockScreen(string message, string title, IEnumerable options, LockScreenSettings settings); /// /// Creates a new log window which runs on its own thread. /// IWindow CreateLogWindow(ILogger logger); /// /// Creates a system control which allows to view and/or change the network connection of the computer. /// ISystemControl CreateNetworkControl(INetworkAdapter adapter, Location location); /// /// Creates a notification control for the given notification, initialized for the specified location. /// INotificationControl CreateNotificationControl(INotification notification, 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 dialog to display the status of the proctoring finalization. /// IProctoringFinalizationDialog CreateProctoringFinalizationDialog(); /// /// Creates a new proctoring window loaded with the given proctoring control. /// IProctoringWindow CreateProctoringWindow(IProctoringControl control); /// /// Creates a new notification control for the raise hand functionality of a remote proctoring session. /// INotificationControl CreateRaiseHandControl(IProctoringController controller, Location location, ProctoringSettings settings); /// /// Creates a new runtime window which runs on its own thread. /// IRuntimeWindow CreateRuntimeWindow(AppConfig appConfig); /// /// Creates a new server failure dialog with the given parameters. /// IServerFailureDialog CreateServerFailureDialog(string info, bool showFallback); /// /// Creates a new splash screen which runs on its own thread. /// ISplashScreen CreateSplashScreen(AppConfig appConfig = null); /// /// Creates a new taskbar. /// ITaskbar CreateTaskbar(ILogger logger); /// /// Creates a new taskview. /// ITaskview CreateTaskview(); } }