Restore SEBPatch

This commit is contained in:
2025-06-01 11:44:20 +02:00
commit 8c656e3137
1297 changed files with 142172 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
/*
* 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;
namespace SafeExamBrowser.Settings.SystemComponents
{
/// <summary>
/// Defines all settings for the audio device of the computer.
/// </summary>
[Serializable]
public class AudioSettings
{
/// <summary>
/// Defines whether the audio volume should be initialized to the value of <see cref="InitialVolume"/> during application startup.
/// </summary>
public bool InitializeVolume { get; set; }
/// <summary>
/// Defines the initial audio volume (from 0 to 100) to be used if <see cref="InitializeVolume"/> is active.
/// </summary>
public int InitialVolume { get; set; }
/// <summary>
/// Defines whether the audio device should be muted during application startup.
/// </summary>
public bool MuteAudio { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
/*
* 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;
namespace SafeExamBrowser.Settings.SystemComponents
{
/// <summary>
/// Defines all settings for the power supply system component.
/// </summary>
[Serializable]
public class PowerSupplySettings
{
/// <summary>
/// The threshold below which the charge of the power supply is to be considered critical.
/// </summary>
public double ChargeThresholdCritical { get; set; }
/// <summary>
/// The threshold below which the charge of the power supply is to be considered low.
/// </summary>
public double ChargeThresholdLow { get; set; }
}
}