Minor orbis fix in System.Net
[mono.git] / mcs / nunit24 / ClientUtilities / util / RecentFiles.cs
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
6 \r
7 using System;\r
8 using System.Collections;\r
9 \r
10 namespace NUnit.Util\r
11 {\r
12         /// <summary>\r
13         /// The RecentFiles interface is used to isolate the app\r
14         /// from various implementations of recent files.\r
15         /// </summary>\r
16         public interface RecentFiles\r
17         { \r
18                 /// <summary>\r
19                 /// The max number of files saved\r
20                 /// </summary>\r
21                 int MaxFiles { get; set; }\r
22 \r
23                 /// <summary>\r
24                 /// The current number of saved files\r
25                 /// </summary>\r
26                 int Count { get; }\r
27 \r
28                 /// <summary>\r
29                 /// Get a list of all the file entries\r
30                 /// </summary>\r
31                 /// <returns>The most recent file list</returns>\r
32                 RecentFilesCollection Entries { get; }\r
33 \r
34                 /// <summary>\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
38                 /// </summary>\r
39                 void SetMostRecent( RecentFileEntry entry );\r
40 \r
41                 /// <summary>\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
46                 /// </summary>\r
47                 void SetMostRecent( string fileName );\r
48 \r
49                 /// <summary>\r
50                 /// Remove a file from the list\r
51                 /// </summary>\r
52                 /// <param name="fileName">The name of the file to remove</param>\r
53                 void Remove( string fileName );\r
54         }\r
55 }\r