IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Engine.Services.RecentFilesService Class Reference

Summary description for RecentFilesService. More...

+ Inheritance diagram for NUnit.Engine.Services.RecentFilesService:
+ Collaboration diagram for NUnit.Engine.Services.RecentFilesService:

Public Member Functions

void Remove (string fileName)
 Remove a file from the list More...
 
void SetMostRecent (string filePath)
 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. More...
 
override void StopService ()
 Do any cleanup needed before terminating the service More...
 
override void StartService ()
 Initialize the Service More...
 
- Public Member Functions inherited from NUnit.Engine.Services.Service
void Dispose ()
 

Properties

int MaxFiles [get, set]
 
IList< string > Entries [get]
 
- Properties inherited from NUnit.Engine.Services.Service
IServiceLocator ServiceContext [get, set]
 The ServiceContext More...
 
ServiceStatus Status [get, protected set]
 Gets the ServiceStatus of this service More...
 
- Properties inherited from NUnit.Engine.IService
IServiceLocator ServiceContext [get, set]
 The ServiceContext More...
 
ServiceStatus Status [get]
 Gets the ServiceStatus of this service More...
 
- Properties inherited from NUnit.Engine.IRecentFiles
int MaxFiles [get, set]
 The max number of files saved More...
 
IList< string > Entries [get]
 Get a list of all the file entries More...
 

Private Member Functions

void LoadEntriesFromSettings ()
 
void AddEntriesForPrefix (string prefix)
 
void SaveEntriesToSettings ()
 
string GetRecentFileKey (string prefix, int index)
 

Private Attributes

IList< string > _fileEntries = new List<string>()
 
ISettings _userSettings
 
const int MinSize = 0
 
const int MaxSize = 24
 
const int DefaultSize = 5
 

Additional Inherited Members

- Protected Member Functions inherited from NUnit.Engine.Services.Service
virtual void Dispose (bool disposing)
 
- Protected Attributes inherited from NUnit.Engine.Services.Service
bool _disposed = false
 

Detailed Description

Summary description for RecentFilesService.

Member Function Documentation

void NUnit.Engine.Services.RecentFilesService.Remove ( string  fileName)
inline
void NUnit.Engine.Services.RecentFilesService.LoadEntriesFromSettings ( )
inlineprivate
void NUnit.Engine.Services.RecentFilesService.AddEntriesForPrefix ( string  prefix)
inlineprivate
void NUnit.Engine.Services.RecentFilesService.SaveEntriesToSettings ( )
inlineprivate
string NUnit.Engine.Services.RecentFilesService.GetRecentFileKey ( string  prefix,
int  index 
)
inlineprivate
override void NUnit.Engine.Services.RecentFilesService.StopService ( )
inlinevirtual

Do any cleanup needed before terminating the service

Reimplemented from NUnit.Engine.Services.Service.

override void NUnit.Engine.Services.RecentFilesService.StartService ( )
inlinevirtual

Initialize the Service

Reimplemented from NUnit.Engine.Services.Service.

References NUnit.Engine.ServiceContext.GetService().

Member Data Documentation

IList<string> NUnit.Engine.Services.RecentFilesService._fileEntries = new List<string>()
private
ISettings NUnit.Engine.Services.RecentFilesService._userSettings
private
const int NUnit.Engine.Services.RecentFilesService.MinSize = 0
private
const int NUnit.Engine.Services.RecentFilesService.MaxSize = 24
private
const int NUnit.Engine.Services.RecentFilesService.DefaultSize = 5
private

Property Documentation


The documentation for this class was generated from the following file: