2020-08-06 05:06:42 +08: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-18 13:32:21 +08:00
using System.IO ;
namespace Wox.Infrastructure.Storage
{
public interface IFileSystemWatcherWrapper
{
// Events to watch out for
event FileSystemEventHandler Created ;
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
event FileSystemEventHandler Deleted ;
2020-08-07 02:28:13 +08:00
2020-07-23 01:58:01 +08:00
event FileSystemEventHandler Changed ;
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
event RenamedEventHandler Renamed ;
// Properties of File System watcher
2020-10-30 08:52:35 +08:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Abstract properties can not have private set")]
2020-07-18 13:32:21 +08:00
Collection < string > Filters { get ; set ; }
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
bool EnableRaisingEvents { get ; set ; }
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
NotifyFilters NotifyFilter { get ; set ; }
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
string Path { get ; set ; }
2020-08-07 02:28:13 +08:00
2020-07-18 13:32:21 +08:00
bool IncludeSubdirectories { get ; set ; }
}
}