#region --------------- Copyright Dresser Wayne Pignone -------------
/*
* $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/ITankGroupEvents.cs $
*
* 2 07-03-09 15:35 roger.månsson
* Made interface public .
*
* 1 07-01-05 15:13 roger.månsson
* Created
*/
#endregion
using System.Runtime.InteropServices;
namespace Wayne.ForecourtControl.Com
{
///
/// Event interface for ITankGroup
///
[ComVisible(true)]
[InterfaceType( ComInterfaceType.InterfaceIsIDispatch)]
public interface ITankGroupEvents
{
#region Request completed events
///
/// Event invoked when a Block request has completed.
///
/// The TankGroup object where the method was invoked.
/// True if the request succeeded.
/// Token object that was supplied in the asynchronous request.
void OnBlockCompleted(ITankGroup sender, bool success, object userToken);
///
/// Event invoked when a Unblock request has completed.
///
/// The TankGroup object where the method was invoked.
/// True if the request succeeded.
/// Token object that was supplied in the asynchronous request.
void OnUnblockCompleted(ITankGroup sender, bool success, object userToken);
///
/// Event invoked when a RegisterManualDelivery request has completed.
///
/// The TankGroup object where the method was invoked.
/// True if the request succeeded.
/// Token object that was supplied in the asynchronous request.
void OnRegisterManualDeliveryCompleted(ITankGroup sender, bool success, object userToken);
#endregion
#region Unsolicited events
///
/// Event that is raised when a fuel delivery is detected. It can be both manual and probe detected deliveries.
///
///
///
void OnFuelDelivery(ITankGroup sender, IFuelDeliveryEventArgs e);
#endregion
}
}