aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/ILibraryMonitor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-28 16:25:10 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-28 16:25:10 -0500
commit7c5b22246357ef6bcd6d74e61a8fe6a8a9d4df3e (patch)
treed836be86d9829cf2df9e5d43112ab3e41bdd3889 /MediaBrowser.Controller/Library/ILibraryMonitor.cs
parent2ae17a8d528f6a75cd8c91217be4860a13b03715 (diff)
Created ILibraryMonitor to replace IDirectoryWatchers
Diffstat (limited to 'MediaBrowser.Controller/Library/ILibraryMonitor.cs')
-rw-r--r--MediaBrowser.Controller/Library/ILibraryMonitor.cs36
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