/*
* Copyright (c) 2019 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/.
*/
using SafeExamBrowser.WindowsApi.Contracts.Events;
namespace SafeExamBrowser.WindowsApi.Contracts
{
///
/// A module which observes user input and indicates when the user would like to terminate the application.
///
public interface ITerminationActivator
{
///
/// Fired when a termination request has been detected.
///
event TerminationActivatorEventHandler Activated;
///
/// Temporarily stops processing all user input.
///
void Pause();
///
/// Resumes processing user input.
///
void Resume();
///
/// Starts monitoring user input events.
///
void Start();
///
/// Stops monitoring user input events.
///
void Stop();
}
}