import "Peasant.idl";
import "Monarch.idl";


namespace Microsoft.Terminal.Remoting
{
    [default_interface] runtimeclass WindowManager
    {
        WindowManager();

        ProposeCommandlineResult ProposeCommandline(CommandlineArgs args, Boolean isolatedMode);
        Peasant CreatePeasant(WindowRequestedArgs args);

        void SignalClose(Peasant p);
        void QuitAll();

        void UpdateActiveTabTitle(String title, Peasant p);

        void SummonWindow(SummonWindowSelectionArgs args);
        void SummonAllWindows();

        Windows.Foundation.Collections.IVectorView<PeasantInfo> GetPeasantInfos();

        UInt64 GetNumberOfPeasants();

        Boolean DoesQuakeWindowExist();

        void RequestMoveContent(String window, String content, UInt32 tabIndex, Windows.Foundation.IReference<Windows.Foundation.Rect> bounds);
        void RequestSendContent(RequestReceiveContentArgs args);

        event Windows.Foundation.TypedEventHandler<Object, FindTargetWindowArgs> FindTargetWindowRequested;

        event Windows.Foundation.TypedEventHandler<Object, Object> WindowCreated;
        event Windows.Foundation.TypedEventHandler<Object, Object> WindowClosed;

        event Windows.Foundation.TypedEventHandler<Object, WindowRequestedArgs> RequestNewWindow;

    };
}
