2018-06-21 07:56:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Contracts.Configuration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// Defines all possible results of an attempt to load a configuration file.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
public enum LoadStatus
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that an admin password is needed in order to load the settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
AdminPasswordNeeded = 1,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that a resource does not comply with the required data format.
|
|
|
|
|
/// </summary>
|
|
|
|
|
InvalidData,
|
|
|
|
|
|
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>
|
|
|
|
|
/// Indicates that a settings password is needed in order to load the settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
SettingsPasswordNeeded,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// The settings were loaded successfully.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Success,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An unexpected error occurred while trying to load the settings.
|
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
|
|
|
|
}
|
|
|
|
|
}
|