// **************************************************************** // Copyright 2007, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 // **************************************************************** using System; using System.Collections; namespace NUnit.Util { /// /// The RecentFiles interface is used to isolate the app /// from various implementations of recent files. /// public interface RecentFiles { /// /// The max number of files saved /// int MaxFiles { get; set; } /// /// The current number of saved files /// int Count { get; } /// /// Get a list of all the file entries /// /// The most recent file list RecentFilesCollection Entries { get; } /// /// Set the most recent file entry, reordering /// the saved names as needed and removing the oldest /// if the max number of files would be exceeded. /// void SetMostRecent( RecentFileEntry entry ); /// /// Set the most recent file name, reordering /// the saved names as needed and removing the oldest /// if the max number of files would be exceeded. /// The current CLR version is used to create the entry. /// void SetMostRecent( string fileName ); /// /// Remove a file from the list /// /// The name of the file to remove void Remove( string fileName ); } }