using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace IndianHealthService.BMXNet.Services
{
    public interface RemoteEventService
    {
        event EventHandler<RemoteEventArgs> RpmsEvent;
        event EventHandler TimerEvent;
        Control InvokedControl { get; set; }     

        int Subscribe(String anEventName);
        int Unsubscribe(String anEventName);
     
        int TriggerEvent(String anEventName, String aParameter,bool raiseBack);
          
        // Only supported on the Primary Session - used for all sessions
        bool IsEventPollingEnabled { get; set; }
        int EventPollingInterval { get; set; }
        double TimerEventPollingMultiple { get; set; }  
    }
}
