2018-01-24 12:34:32 +01:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-01-24 12:34:32 +01: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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-06-27 14:02:16 +02:00
|
|
|
|
using System;
|
2020-07-31 19:57:08 +02:00
|
|
|
|
using System.Collections.Generic;
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Communication.Contracts.Data;
|
2018-01-24 12:34:32 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Proxies
|
2018-01-24 12:34:32 +01:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the functionality for a proxy to the communication host of the client application component.
|
|
|
|
|
/// </summary>
|
2018-02-14 15:26:05 +01:00
|
|
|
|
public interface IClientProxy : ICommunicationProxy
|
2018-01-24 12:34:32 +01:00
|
|
|
|
{
|
2020-02-10 16:47:50 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Informs the client that a reconfiguration was aborted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
CommunicationResult InformReconfigurationAborted();
|
|
|
|
|
|
2018-07-04 09:53:33 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Informs the client that the reconfiguration request for the specified file was denied.
|
|
|
|
|
/// </summary>
|
2018-08-10 13:23:24 +02:00
|
|
|
|
CommunicationResult InformReconfigurationDenied(string filePath);
|
2018-07-04 09:53:33 +02:00
|
|
|
|
|
2018-02-20 15:15:26 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instructs the client to initiate its shutdown procedure.
|
|
|
|
|
/// </summary>
|
2018-08-10 13:23:24 +02:00
|
|
|
|
CommunicationResult InitiateShutdown();
|
2018-02-20 15:15:26 +01:00
|
|
|
|
|
2018-02-08 13:32:48 +01:00
|
|
|
|
/// <summary>
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// Instructs the client to submit its authentication data.
|
2018-02-08 13:32:48 +01:00
|
|
|
|
/// </summary>
|
2018-08-10 13:23:24 +02:00
|
|
|
|
CommunicationResult<AuthenticationResponse> RequestAuthentication();
|
2018-06-27 14:02:16 +02:00
|
|
|
|
|
2020-07-31 19:57:08 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests the client to render a server exam selection dialog and subsequently return the interaction result as separate message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
CommunicationResult RequestExamSelection(IEnumerable<(string id, string lms, string name, string url)> exams, Guid requestId);
|
|
|
|
|
|
2018-06-27 14:02:16 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests the client to render a password dialog and subsequently return the interaction result as separate message.
|
|
|
|
|
/// </summary>
|
2018-08-10 13:23:24 +02:00
|
|
|
|
CommunicationResult RequestPassword(PasswordRequestPurpose purpose, Guid requestId);
|
2018-12-14 12:31:31 +01:00
|
|
|
|
|
2020-07-31 20:35:18 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests the client to render a server failure action dialog and subsequently return the interaction result as separate message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
CommunicationResult RequestServerFailureAction(string message, bool showFallback, Guid requestId);
|
|
|
|
|
|
2018-12-14 12:31:31 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests the client to render a message box and subsequently return the interaction result as separate message.
|
|
|
|
|
/// </summary>
|
2019-08-30 14:02:36 +02:00
|
|
|
|
CommunicationResult ShowMessage(string message, string title, int action, int icon, Guid requestId);
|
2018-01-24 12:34:32 +01:00
|
|
|
|
}
|
|
|
|
|
}
|