diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-28 16:25:10 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-28 16:25:10 -0500 |
| commit | 7c5b22246357ef6bcd6d74e61a8fe6a8a9d4df3e (patch) | |
| tree | d836be86d9829cf2df9e5d43112ab3e41bdd3889 /MediaBrowser.Controller/Library/ILibraryMonitor.cs | |
| parent | 2ae17a8d528f6a75cd8c91217be4860a13b03715 (diff) | |
Created ILibraryMonitor to replace IDirectoryWatchers
Diffstat (limited to 'MediaBrowser.Controller/Library/ILibraryMonitor.cs')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibraryMonitor.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/ILibraryMonitor.cs b/MediaBrowser.Controller/Library/ILibraryMonitor.cs new file mode 100644 index 000000000..918382f04 --- /dev/null +++ b/MediaBrowser.Controller/Library/ILibraryMonitor.cs @@ -0,0 +1,36 @@ +using System; + +namespace MediaBrowser.Controller.Library +{ + public interface ILibraryMonitor : IDisposable + { + /// <summary> + /// Starts this instance. + /// </summary> + void Start(); + + /// <summary> + /// Stops this instance. + /// </summary> + void Stop(); + + /// <summary> + /// Reports the file system change beginning. + /// </summary> + /// <param name="path">The path.</param> + void ReportFileSystemChangeBeginning(string path); + + /// <summary> + /// Reports the file system change complete. + /// </summary> + /// <param name="path">The path.</param> + /// <param name="refreshPath">if set to <c>true</c> [refresh path].</param> + void ReportFileSystemChangeComplete(string path, bool refreshPath); + + /// <summary> + /// Reports the file system changed. + /// </summary> + /// <param name="path">The path.</param> + void ReportFileSystemChanged(string path); + } +}
\ No newline at end of file |
