/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* 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.Monitoring.Contracts.System.Events;
namespace SafeExamBrowser.Monitoring.Contracts.System
{
///
/// Provides the possibility to suppress and surveil various system components and functionalities.
///
public interface ISystemSentinel
{
///
/// Event fired when the cursor configuration has changed.
///
event SentinelEventHandler CursorChanged;
///
/// Event fired when the ease of access configuration has changed.
///
event SentinelEventHandler EaseOfAccessChanged;
///
/// Event fired when the active user session has changed.
///
event SessionChangedEventHandler SessionChanged;
///
/// Event fired when the sticky keys state has changed.
///
event SentinelEventHandler StickyKeysChanged;
///
/// Attempts to disable the sticky keys. Returns true if successful, otherwise false.
///
bool DisableStickyKeys();
///
/// Attempts to enable the sticky keys. Returns true if successful, otherwise false.
///
bool EnableStickyKeys();
///
/// Attempts to revert the sticky keys to their initial state. Returns true if successful, otherwise false.
///
bool RevertStickyKeys();
///
/// Starts monitoring the cursor configuration.
///
void StartMonitoringCursors();
///
/// Starts monitoring the ease of access configuration.
///
void StartMonitoringEaseOfAccess();
///
/// Starts monitoring the sticky keys state.
///
void StartMonitoringStickyKeys();
///
/// Starts monitoring the system events.
///
void StartMonitoringSystemEvents();
///
/// Stops all monitoring operations.
///
void StopMonitoring();
///
/// Verifies the cursor configuration. Returns true if permitted, otherwise false.
///
bool VerifyCursors();
///
/// Verifies the ease of access configuration. Returns true if permitted, otherwise false.
///
bool VerifyEaseOfAccess();
}
}