blob: a5ea88b5ef079cf5e5c05441328130e6dea79a88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.PMR.Diagnostics;
namespace Tango.FSE.Common.Events
{
/// <summary>
/// Represents a machine events notifications provider.
/// </summary>
public interface IEventsProvider
{
/// <summary>
/// Gets a value indicating whether there are any active events currently.
/// </summary>
bool HasActiveEvents { get; }
/// <summary>
/// Gets the events history (resolved events).
/// </summary>
ObservableCollection<MachinesEvent> EventsHistory { get; }
/// <summary>
/// Gets the current active events.
/// </summary>
ObservableCollection<MachinesEvent> ActiveEvents { get; }
/// <summary>
/// Emulates a hardware event that will last for the specified timeout.
/// </summary>
/// <param name="ev">Type of the event.</param>
/// <param name="timeout">The timeout.</param>
Task PushEmulatedEvent(Event ev, TimeSpan timeout);
}
}
|