aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Code_Composer/driverlib/macros.ini_initial
blob: 89a26bd0c1e4202470184715d2a048a12332682d (plain)
1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media.Imaging;
using Tango.BL.Entities;
using Tango.BL.Enumerations;

namespace Tango.PPC.Common
{
    /// <summary>
    /// Represents a PCC module.
    /// </summary>
    /// <seealso cref="System.IDisposable" />
    public interface IPPCModule : IDisposable
    {
        /// <summary>
        /// Gets the module name.
        /// </summary>
        String Name { get; }

        /// <summary>
        /// Gets the module description.
        /// </summary>
        String Description { get; }

        /// <summary>
        /// Gets the module cover image.
        /// </summary>
        BitmapSource Image { get; }

        /// <summary>
        /// Gets the module entry point view type.
        /// </summary>
        Type MainViewType { get; }

        /// <summary>
        /// Gets the permission required to see and load this module.
        /// </summary>
        Permissions Permission { get; }

        /// <summary>
        /// Gets a value indicating whether this module should be displayed in the application menu.
        /// </summary>
        bool IsVisibleInMenu { get; }

        /// <summary>
        /// Gets a value indicating whether to dock this module menu item to the bottom.
        /// </summary>
        bool DockToBottom { get; }

        /// <summary>
        /// Called when the application has entered the technician mode.
        /// </summary>
        void OnTechnicianEntered();

        /// <summary>
        /// Called when the application has exited the technician mode.
        /// </summary>
        void OnTechnicianExited();
    }
}