2018-06-21 07:56:25 +02:00
|
|
|
|
/*
|
2022-01-21 16:33:52 +01:00
|
|
|
|
* Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET)
|
2018-06-21 07:56:25 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Configuration.Contracts
|
2018-06-21 07:56:25 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-11-09 14:15:56 +01:00
|
|
|
|
/// Defines all possible results of an attempt to load a configuration resource.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
public enum LoadStatus
|
|
|
|
|
{
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that a resource contains invalid data.
|
|
|
|
|
/// </summary>
|
|
|
|
|
InvalidData,
|
2018-06-21 07:56:25 +02:00
|
|
|
|
|
2018-11-09 14:15:56 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that a resource needs to be loaded with the browser.
|
|
|
|
|
/// </summary>
|
|
|
|
|
LoadWithBrowser,
|
|
|
|
|
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that a resource is not supported.
|
|
|
|
|
/// </summary>
|
|
|
|
|
NotSupported,
|
|
|
|
|
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// <summary>
|
2018-12-14 15:30:10 +01:00
|
|
|
|
/// Indicates that a password is needed in order to decrypt the configuration.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
2018-12-14 09:50:10 +01:00
|
|
|
|
PasswordNeeded,
|
2018-06-21 07:56:25 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-12-14 15:30:10 +01:00
|
|
|
|
/// The configuration was loaded successfully.
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
Success,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-12-14 15:30:10 +01:00
|
|
|
|
/// An unexpected error occurred while trying to load the configuration.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
2018-11-08 09:39:52 +01:00
|
|
|
|
UnexpectedError
|
2018-06-21 07:56:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|