#region --------------- Copyright Dresser Wayne Pignone -------------
/*
* $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/Com/IForecourtControlEvents.cs $
*
* 5 07-10-22 11:19 roger.månsson
* Added OnFuelPriceChange event.
*
* 4 07-03-09 15:33 roger.månsson
* Removed DispId definitions. The automatically generated works just
* fine.
*
* 3 07-02-16 9:59 roger.månsson
* FxCop changes
*
* 2 07-01-05 9:01 roger.månsson
* Documentation changes
*/
#endregion
using System.Runtime.InteropServices;
namespace Wayne.ForecourtControl.Com
{
///
/// Event interface for the IForecourtControl. Contains the event sink interface for the forecourt
/// control object.
///
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface IForecourtControlEvents
{
#region Response events
///
/// Event that will be invoked when a call to SetSiteOpenendAsync has completed.
///
/// Sender object
/// True if the operation succeeded
/// The user token that was specified in the request.
void OnSetSiteOpenedCompleted(IForecourtControl sender, bool success, object userToken);
///
/// Event that will be invoked when a call to SetSiteModeAsync has completed.
///
/// Sender object
/// True if the operation succeeded
/// The user token that was specified in the request.
void OnSetSiteModeCompleted(IForecourtControl sender, bool success, object userToken);
///
/// Event that will be invoked when a call to ReserveFuelPricesAsync has completed.
///
/// Sender object
/// True if the operation succeeded
/// The user token that was specified in the request.
void OnReserveFuelPricesCompleted(IForecourtControl sender, bool success, object userToken);
///
/// Event that will be invoked when a call to UnreserveFuelPricesAsync has completed.
///
/// Sender object
/// True if the operation succeeded
/// The user token that was specified in the request.
void OnUnreserveFuelPricesCompleted(IForecourtControl sender, bool success, object userToken);
///
/// Event that will be invoked when a call to ActivateFuelPricesAsync has completed.
///
/// Sender object
/// True if the operation succeeded
/// The user token that was specified in the request.
void OnActivateFuelPricesCompleted(IForecourtControl sender, bool success, object userToken);
#endregion
#region Unsolicited events
///
/// Site mode has changed. Either the site mode or the site open/closed status has changed.
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "OnSite")]
void OnSiteModeChange(IForecourtControl sender, int siteMode, bool siteOpen);
///
/// Connection state to the Forecourt Control has changed.
///
///
///
void OnConnectionStateChange(IForecourtControl sender, DeviceConnectionState connectionState);
///
///
///
///
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "1#e")]
void OnAlarm(IForecourtControl sender, IAlarmEventArgs e);
///
/// Event fired when the fuel prices has been changed on the station and a new fuel price shift has been
/// created.
///
///
/// The new Fuel period id.
void OnFuelPriceChange(IForecourtControl sender, int fuelPeriodId);
#endregion
}
}