2020-07-17 22:32:21 -07:00
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure.Storage
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IFileSystemWatcherWrapper
|
|
|
|
|
|
{
|
|
|
|
|
|
// Events to watch out for
|
|
|
|
|
|
event FileSystemEventHandler Created;
|
|
|
|
|
|
event FileSystemEventHandler Deleted;
|
2020-07-22 10:58:01 -07:00
|
|
|
|
event FileSystemEventHandler Changed;
|
2020-07-17 22:32:21 -07:00
|
|
|
|
event RenamedEventHandler Renamed;
|
|
|
|
|
|
|
|
|
|
|
|
// Properties of File System watcher
|
|
|
|
|
|
Collection<string> Filters { get; set; }
|
|
|
|
|
|
bool EnableRaisingEvents { get; set; }
|
|
|
|
|
|
NotifyFilters NotifyFilter { get; set; }
|
|
|
|
|
|
string Path { get; set; }
|
|
|
|
|
|
bool IncludeSubdirectories { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|