2017-08-15 15:30:31 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-08-15 15:30:31 +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.SystemComponents.Contracts
|
2017-08-15 15:30:31 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
2019-08-15 10:46:47 +02:00
|
|
|
|
/// Defines the functionality of a system component (e.g. the power supply). Each system component can get multiple <see cref="ISystemControl"/>
|
|
|
|
|
/// assigned, which in turn allow the user to interact with or get information about the underlying system component.
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// </summary>
|
2019-08-30 09:55:26 +02:00
|
|
|
|
public interface ISystemComponent// TODO <TControl> where TControl : ISystemControl
|
2017-08-15 15:30:31 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-03-08 15:56:38 +01:00
|
|
|
|
/// Initializes the resources and operations of the component.
|
2017-08-15 15:30:31 +02:00
|
|
|
|
/// </summary>
|
2019-03-08 15:56:38 +01:00
|
|
|
|
void Initialize();
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
// TODO
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// Registers a system control which will be loaded into shell.
|
|
|
|
|
///// </summary>
|
|
|
|
|
//void Register(TControl control);
|
2017-08-15 15:30:31 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-08-17 12:17:58 +02:00
|
|
|
|
/// Instructs the component to stop any running operations and releases all used resources.
|
2017-08-15 15:30:31 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
void Terminate();
|
|
|
|
|
}
|
|
|
|
|
}
|