2017-07-26 14:36:20 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-26 14:36:20 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Client.Contracts
|
2017-07-26 14:36:20 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Controls the lifetime and is responsible for the event handling of the client application component.
|
|
|
|
|
/// </summary>
|
2018-01-17 08:26:44 +01:00
|
|
|
|
public interface IClientController
|
2017-07-26 14:36:20 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// Reverts any changes, releases all used resources and terminates the client.
|
2017-07-26 14:36:20 +02:00
|
|
|
|
/// </summary>
|
2018-02-12 12:21:55 +01:00
|
|
|
|
void Terminate();
|
2017-07-26 14:36:20 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// Tries to start the client. Returns <c>true</c> if successful, otherwise <c>false</c>.
|
2017-07-26 14:36:20 +02:00
|
|
|
|
/// </summary>
|
2018-02-12 12:21:55 +01:00
|
|
|
|
bool TryStart();
|
2019-10-01 16:24:10 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instructs the controller to update the application configuration.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void UpdateAppConfig();
|
2017-07-26 14:36:20 +02:00
|
|
|
|
}
|
|
|
|
|
}
|