2020-08-05 14:06:42 -07:00
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.ObjectModel ;
2020-07-17 22:32:21 -07:00
using System.IO ;
namespace Wox.Infrastructure.Storage
{
public interface IFileSystemWatcherWrapper
{
// Events to watch out for
event FileSystemEventHandler Created ;
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
event FileSystemEventHandler Deleted ;
2020-08-06 11:28:13 -07:00
2020-07-22 10:58:01 -07:00
event FileSystemEventHandler Changed ;
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
event RenamedEventHandler Renamed ;
// Properties of File System watcher
2020-10-29 17:52:35 -07:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Abstract properties can not have private set")]
2020-07-17 22:32:21 -07:00
Collection < string > Filters { get ; set ; }
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
bool EnableRaisingEvents { get ; set ; }
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
NotifyFilters NotifyFilter { get ; set ; }
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
string Path { get ; set ; }
2020-08-06 11:28:13 -07:00
2020-07-17 22:32:21 -07:00
bool IncludeSubdirectories { get ; set ; }
}
}