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-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
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// Indicates that the current administrator password is needed to be allowed to configure the local client.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
2018-12-11 16:06:10 +01:00
|
|
|
|
AdminPasswordNeeded = 1,
|
|
|
|
|
|
|
|
|
|
/// <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-11 16:06:10 +01:00
|
|
|
|
/// Indicates that the settings password is needed in order to decrypt the settings.
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// </summary>
|
2018-12-11 16:06:10 +01:00
|
|
|
|
SettingsPasswordNeeded,
|
2018-06-21 07:56:25 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// The settings were loaded successfully.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Success,
|
|
|
|
|
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The settings were loaded and the local client configuration was performed successfully.
|
|
|
|
|
/// </summary>
|
|
|
|
|
SuccessConfigureClient,
|
|
|
|
|
|
2018-11-08 09:39:52 +01:00
|
|
|
|
/// <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
|
|
|
|
}
|
|
|
|
|
}
|