2018-10-12 11:16:59 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2018-10-12 11:16:59 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using SafeExamBrowser.Contracts.Communication.Proxies;
|
|
|
|
|
using SafeExamBrowser.Contracts.Configuration;
|
2018-10-12 15:23:43 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.Configuration.Settings;
|
2018-10-12 11:16:59 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.WindowsApi;
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Runtime
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds all configuration and runtime data required for the session handling.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal class SessionContext
|
|
|
|
|
{
|
2018-10-12 15:23:43 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The currently active <see cref="KioskMode"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public KioskMode? ActiveMode { get; set; }
|
|
|
|
|
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The currently running client process.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IProcess ClientProcess { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The communication proxy for the currently running client process.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IClientProxy ClientProxy { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The configuration of the currently active session.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ISessionConfiguration Current { get; set; }
|
|
|
|
|
|
2018-10-12 15:23:43 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The new desktop, if <see cref="KioskMode.CreateNewDesktop"/> is currently active.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IDesktop NewDesktop { get; set; }
|
|
|
|
|
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The configuration of the next session to be activated.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ISessionConfiguration Next { get; set; }
|
|
|
|
|
|
2018-10-12 15:23:43 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The original desktop, if <see cref="KioskMode.CreateNewDesktop"/> is currently active.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IDesktop OriginalDesktop { get; set; }
|
|
|
|
|
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The path of the configuration file to be used for reconfiguration.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ReconfigurationFilePath { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|