ILibraryMonitor.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma warning disable CS1591
  2. using System;
  3. namespace MediaBrowser.Controller.Library
  4. {
  5. public interface ILibraryMonitor : IDisposable
  6. {
  7. /// <summary>
  8. /// Starts this instance.
  9. /// </summary>
  10. void Start();
  11. /// <summary>
  12. /// Stops this instance.
  13. /// </summary>
  14. void Stop();
  15. /// <summary>
  16. /// Reports the file system change beginning.
  17. /// </summary>
  18. /// <param name="path">The path.</param>
  19. void ReportFileSystemChangeBeginning(string path);
  20. /// <summary>
  21. /// Reports the file system change complete.
  22. /// </summary>
  23. /// <param name="path">The path.</param>
  24. /// <param name="refreshPath">if set to <c>true</c> [refresh path].</param>
  25. void ReportFileSystemChangeComplete(string path, bool refreshPath);
  26. /// <summary>
  27. /// Reports the file system changed.
  28. /// </summary>
  29. /// <param name="path">The path.</param>
  30. void ReportFileSystemChanged(string path);
  31. /// <summary>
  32. /// Determines whether [is path locked] [the specified path].
  33. /// </summary>
  34. /// <param name="path">The path.</param>
  35. /// <returns><c>true</c> if [is path locked] [the specified path]; otherwise, <c>false</c>.</returns>
  36. bool IsPathLocked(string path);
  37. }
  38. }