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,23 @@
/*
* 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.Core.Contracts.Resources.Icons
{
/// <summary>
/// Defines an icon resource which is a bitmap image (i.e. raster graphics).
/// </summary>
public class BitmapIconResource : IconResource
{
/// <summary>
/// The <see cref="System.Uri"/> pointing to the image file.
/// </summary>
public Uri Uri { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
/*
* 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/.
*/
namespace SafeExamBrowser.Core.Contracts.Resources.Icons
{
/// <summary>
/// Defines an icon resource which is a file with embedded icon data (e.g. an executable).
/// </summary>
public class EmbeddedIconResource : IconResource
{
/// <summary>
/// The full path of the file.
/// </summary>
public string FilePath { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
/*
* 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/.
*/
namespace SafeExamBrowser.Core.Contracts.Resources.Icons
{
/// <summary>
/// Defines an icon resource.
/// </summary>
public abstract class IconResource
{
}
}

View File

@@ -0,0 +1,23 @@
/*
* 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.Core.Contracts.Resources.Icons
{
/// <summary>
/// Defines an icon resource which is managed by the operating system.
/// </summary>
public class NativeIconResource : IconResource
{
/// <summary>
/// The handle of the icon.
/// </summary>
public IntPtr Handle { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
/*
* 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.Core.Contracts.Resources.Icons
{
/// <summary>
/// Defines an icon resource which consists of XAML markup (i.e. vector graphics).
/// </summary>
public class XamlIconResource : IconResource
{
/// <summary>
/// The <see cref="System.Uri"/> pointing to the XAML file.
/// </summary>
public Uri Uri { get; set; }
}
}