2017-07-14 10:28:59 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-14 10:28:59 +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
|
|
|
|
using SafeExamBrowser.Applications.Contracts.Events;
|
|
|
|
|
using SafeExamBrowser.Core.Contracts;
|
2017-07-14 10:28:59 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Applications.Contracts
|
2017-07-14 10:28:59 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
2019-03-06 16:10:00 +01:00
|
|
|
|
/// Defines an instance of a (third-party) application which can be accessed via the shell.
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// </summary>
|
2017-07-14 10:28:59 +02:00
|
|
|
|
public interface IApplicationInstance
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique identifier for the application instance.
|
|
|
|
|
/// </summary>
|
2018-08-31 07:49:41 +02:00
|
|
|
|
InstanceIdentifier Id { get; }
|
2017-07-14 10:28:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The name or (document) title of the application instance.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Name { get; }
|
2017-07-24 17:31:28 +02:00
|
|
|
|
|
2019-01-17 16:15:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the icon of the application instance has changed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event IconChangedEventHandler IconChanged;
|
|
|
|
|
|
2017-07-28 09:12:17 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the application instance has been terminated.
|
|
|
|
|
/// </summary>
|
2018-07-06 15:57:38 +02:00
|
|
|
|
event InstanceTerminatedEventHandler Terminated;
|
2017-07-28 09:12:17 +02:00
|
|
|
|
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// <summary>
|
2017-07-31 20:22:53 +02:00
|
|
|
|
/// Event fired when the name or (document) title of the application instance has changed.
|
2017-07-24 17:31:28 +02:00
|
|
|
|
/// </summary>
|
2017-07-31 20:22:53 +02:00
|
|
|
|
event NameChangedEventHandler NameChanged;
|
2017-07-24 17:31:28 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
// TODO
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// The main window of the application instance.
|
|
|
|
|
///// </summary>
|
|
|
|
|
//IWindow Window { get; }
|
2017-07-14 10:28:59 +02:00
|
|
|
|
}
|
|
|
|
|
}
|