/* * 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 System; namespace SafeExamBrowser.Settings.Browser { /// /// Defines all settings for the browser engine of the application. /// [Serializable] public class BrowserSettings { /// /// The settings to be used for additional browser windows. /// public BrowserWindowSettings AdditionalWindow { get; set; } /// /// Determines whether the user will be allowed to download configuration files. /// public bool AllowConfigurationDownloads { get; set; } /// /// Determines whether the user will be allowed to download files (excluding configuration files). /// public bool AllowDownloads { get; set; } /// /// Determines whether the user will be allowed to zoom webpages. /// public bool AllowPageZoom { get; set; } /// /// Determines whether popup windows will be opened or not. /// public bool AllowPopups { get; set; } /// /// The custom user agent to optionally be used for all requests. /// public string CustomUserAgent { get; set; } /// /// The settings to be used for the browser request filter. /// public BrowserFilterSettings Filter { get; set; } /// /// The settings to be used for the main browser window. /// public BrowserWindowSettings MainWindow { get; set; } /// /// The URL with which the main browser window will be loaded. /// public string StartUrl { get; set; } /// /// Determines whether a custom user agent will be used for all requests, see . /// public bool UseCustomUserAgent { get; set; } public BrowserSettings() { AdditionalWindow = new BrowserWindowSettings(); Filter = new BrowserFilterSettings(); MainWindow = new BrowserWindowSettings(); } } }