seb-win-refactoring/SafeExamBrowser.Contracts/Configuration/Settings/BrowserSettings.cs

90 lines
2.8 KiB
C#
Raw Normal View History

2017-07-28 14:52:15 +02:00
/*
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
2017-07-28 14:52:15 +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/.
*/
2018-02-15 15:42:54 +01:00
using System;
2017-07-28 14:52:15 +02:00
namespace SafeExamBrowser.Contracts.Configuration.Settings
{
/// <summary>
/// Defines all configuration options for the browser of the application.
/// </summary>
2018-02-15 15:42:54 +01:00
[Serializable]
public class BrowserSettings
2017-07-28 14:52:15 +02:00
{
/// <summary>
/// Determines whether the user will be allowed to change the URL of a browser window.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool AllowAddressBar { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the user will be allowed to navigate backwards in a browser window.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool AllowBackwardNavigation { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the user will be allowed to download configuration files.
/// </summary>
public bool AllowConfigurationDownloads { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the user will be allowed to open the developer console of a browser window.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool AllowDeveloperConsole { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the user will be allowed to download files (excluding configuration files).
/// </summary>
public bool AllowDownloads { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the user will be allowed to navigate forwards in a browser window.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool AllowForwardNavigation { get; set; }
2017-07-28 14:52:15 +02:00
2019-01-15 10:44:35 +01:00
/// <summary>
/// Determines whether the user will be allowed to zoom webpages.
2019-01-15 10:44:35 +01:00
/// </summary>
public bool AllowPageZoom { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether popup windows will be opened or not.
/// </summary>
public bool AllowPopups { get; set; }
/// <summary>
/// Determines whether the user will be allowed to reload webpages.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool AllowReloading { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// The custom user agent to optionally be used for all requests.
/// </summary>
public string CustomUserAgent { get; set; }
2017-07-28 14:52:15 +02:00
/// <summary>
/// Determines whether the main browser window will be rendered in fullscreen mode, i.e. without window frame.
2017-07-28 14:52:15 +02:00
/// </summary>
2018-02-15 15:42:54 +01:00
public bool FullScreenMode { get; set; }
/// <summary>
/// Determines whether the user will need to confirm every reload attempt.
/// </summary>
public bool ShowReloadWarning { get; set; }
/// <summary>
/// The start URL with which a new browser window will be loaded.
/// </summary>
2018-02-15 15:42:54 +01:00
public string StartUrl { get; set; }
/// <summary>
/// Determines whether a custom user agent will be used for all requests, see <see cref="CustomUserAgent"/>.
/// </summary>
public bool UseCustomUserAgent { get; set; }
2017-07-28 14:52:15 +02:00
}
}