using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
namespace Tango.MachineStudio.Common.Navigation
{
/// <summary>
/// Represents the Machine Studio views navigation manager.
/// </summary>
public interface INavigationManager
{
/// <summary>
/// Gets the current module.
/// </summary>
IStudioModule CurrentModule { get; }
/// <summary>
/// Gets the current view model.
/// </summary>
StudioViewModel CurrentVM { get; }
/// <summary>
/// Gets a value indicating whether the navigation system is able to navigate to the previous view.
/// </summary>
bool CanNavigateBack { get; }
/// <summary>
/// Navigates to the previous view if <see cref="CanNavigateBack"/> is true.
/// </summary>
Task<bool> NavigateBack();
/// <summary>
/// Navigates to the previous view..
/// </summary>
RelayCommand NavigateBackCommand { get; }
/// <summary>
/// Navigates to the specified full path in command parameter.
/// </summary>
RelayCommand<String> NavigateToCommand { get; }
/// <summary>
/// Navigates to the specified PPC view.
/// </summary>
/// <param name="view">The view.</param>
Task<bool> NavigateTo(NavigationView view, bool pushToHistory = true);
/// <summary>
/// Navigates to the specified PPC view with the specified receive object.
/// </summary>
/// <param name="view">The view.</param>
Task<bool> NavigateWithObject<TPass>(NavigationView view, TPass obj, bool pushToHistory = true);
/// <summary>
/// Navigates to the specified module.
/// </summary>
/// <typeparam name="T"></typeparam>
Task<bool> NavigateTo<T>(bool pushToHistory = true) where T : IStudioModule;
/// <summary>
/// Navigates to the specified module using the view path (e.g MainView.JobsView).
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="viewPath">The view path.</param>
Task<bool> NavigateTo<T>(String viewPath, bool pushToHistory = true) where T : IStudioModule;
/// <summary>
/// Navigates to the specified module using the view path