1 // ****************************************************************
\r
2 // Copyright 2007, Charlie Poole
\r
3 // This is free software licensed under the NUnit license. You may
\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
\r
5 // ****************************************************************
\r
8 using System.Collections;
\r
10 namespace NUnit.Util
\r
13 /// The RecentFiles interface is used to isolate the app
\r
14 /// from various implementations of recent files.
\r
16 public interface RecentFiles
\r
19 /// The max number of files saved
\r
21 int MaxFiles { get; set; }
\r
24 /// The current number of saved files
\r
29 /// Get a list of all the file entries
\r
31 /// <returns>The most recent file list</returns>
\r
32 RecentFilesCollection Entries { get; }
\r
35 /// Set the most recent file entry, reordering
\r
36 /// the saved names as needed and removing the oldest
\r
37 /// if the max number of files would be exceeded.
\r
39 void SetMostRecent( RecentFileEntry entry );
\r
42 /// Set the most recent file name, reordering
\r
43 /// the saved names as needed and removing the oldest
\r
44 /// if the max number of files would be exceeded.
\r
45 /// The current CLR version is used to create the entry.
\r
47 void SetMostRecent( string fileName );
\r
50 /// Remove a file from the list
\r
52 /// <param name="fileName">The name of the file to remove</param>
\r
53 void Remove( string fileName );
\r