2017-07-07 15:46:32 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-07 15:46:32 +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-03-06 16:10:00 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.UserInterface.Shell;
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
2019-01-23 15:57:49 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Applications
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2018-03-02 15:41:04 +01:00
|
|
|
|
/// <summary>
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// Controls the lifetime and functionality of a (third-party) application which can be accessed via the <see cref="ITaskbar"/>.
|
2018-03-02 15:41:04 +01:00
|
|
|
|
/// </summary>
|
2017-07-12 15:36:30 +02:00
|
|
|
|
public interface IApplicationController
|
2017-07-07 15:46:32 +02:00
|
|
|
|
{
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Performs any initialization work, if necessary.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Initialize();
|
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
2019-03-08 11:43:52 +01:00
|
|
|
|
/// Registers an application control for this application.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2019-03-08 11:43:52 +01:00
|
|
|
|
void RegisterApplicationControl(IApplicationControl control);
|
2017-07-24 17:31:28 +02:00
|
|
|
|
|
2018-11-15 08:45:17 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starts the execution of the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Start();
|
|
|
|
|
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// <summary>
|
2018-03-02 15:41:04 +01:00
|
|
|
|
/// Performs any termination work, e.g. releasing of used resources.
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
void Terminate();
|
2017-07-07 15:46:32 +02:00
|
|
|
|
}
|
|
|
|
|
}
|