2021-02-10 23:21:48 +01:00
|
|
|
|
/*
|
2022-01-21 16:33:52 +01:00
|
|
|
|
* Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET)
|
2021-02-10 23:21:48 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-09-17 10:47:02 +02:00
|
|
|
|
using SafeExamBrowser.Proctoring.Contracts.Events;
|
2021-02-19 22:03:52 +01:00
|
|
|
|
using SafeExamBrowser.Settings.Proctoring;
|
|
|
|
|
|
2021-02-10 23:21:48 +01:00
|
|
|
|
namespace SafeExamBrowser.Proctoring.Contracts
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the remote proctoring functionality.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IProctoringController
|
|
|
|
|
{
|
2021-09-17 10:47:02 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates whether the hand is currently raised.
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsHandRaised { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fired when the hand has been lowered.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event ProctoringEventHandler HandLowered;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fired when the hand has been raised.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event ProctoringEventHandler HandRaised;
|
|
|
|
|
|
2021-02-19 22:03:52 +01:00
|
|
|
|
/// <summary>
|
2021-06-16 15:38:55 +02:00
|
|
|
|
/// Initializes the given settings and starts the proctoring if the settings are valid.
|
2021-02-19 22:03:52 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
void Initialize(ProctoringSettings settings);
|
2021-02-10 23:21:48 +01:00
|
|
|
|
|
2021-09-17 10:47:02 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Lowers the hand.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void LowerHand();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Raises the hand, optionally with the given message.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RaiseHand(string message = default(string));
|
|
|
|
|
|
2021-02-19 22:03:52 +01:00
|
|
|
|
/// <summary>
|
2021-06-16 15:38:55 +02:00
|
|
|
|
/// Stops the proctoring functionality.
|
2021-02-19 22:03:52 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
void Terminate();
|
2021-02-10 23:21:48 +01:00
|
|
|
|
}
|
|
|
|
|
}
|