using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Explorer; namespace Tango.PPC.Common.Storage { /// /// Represents a storage provider responsible of notifying about flash drives connection/disconnection. /// public interface IStorageProvider { /// /// Occurs when a new storage drive has been inserted. /// event EventHandler StorageConnected; /// /// Occurs when a storage drive has been removed. /// event EventHandler StorageDisconnected; /// /// Gets a value indicating whether a storage drive is currently inserted. /// bool IsConnected { get; } /// /// Gets the inserted storage drive information. /// DriveInfo Drive { get; } /// /// Registers a method for handling a file selection. /// /// The file extension. /// The handler. void RegisterFileHandler(String extension, Action> handler); /// /// Unregisters the file handler. /// /// The handler. void UnregisterFileHandler(Action> handler); /// /// Submits a file selection. /// /// The file item. void SubmitFileSelection(List fileItems); } }