2
0

ILibraryMonitor.cs 1.3 KB

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