NativeFileWatcherNotSupported.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef mozilla_nativefilewatcher_h__
  5. #define mozilla_nativefilewatcher_h__
  6. #include "nsINativeFileWatcher.h"
  7. namespace mozilla {
  8. class NativeFileWatcherService final : public nsINativeFileWatcherService
  9. {
  10. public:
  11. NS_DECL_ISUPPORTS
  12. NativeFileWatcherService()
  13. {
  14. };
  15. nsresult Init()
  16. {
  17. return NS_OK;
  18. };
  19. NS_IMETHOD AddPath(const nsAString& aPathToWatch,
  20. nsINativeFileWatcherCallback* aOnChange,
  21. nsINativeFileWatcherErrorCallback* aOnError,
  22. nsINativeFileWatcherSuccessCallback* aOnSuccess) override
  23. {
  24. return NS_ERROR_NOT_IMPLEMENTED;
  25. };
  26. NS_IMETHOD RemovePath(const nsAString& aPathToRemove,
  27. nsINativeFileWatcherCallback* aOnChange,
  28. nsINativeFileWatcherErrorCallback* aOnError,
  29. nsINativeFileWatcherSuccessCallback* aOnSuccess) override
  30. {
  31. return NS_ERROR_NOT_IMPLEMENTED;
  32. };
  33. private:
  34. ~NativeFileWatcherService() { };
  35. NativeFileWatcherService(const NativeFileWatcherService& other) = delete;
  36. void operator=(const NativeFileWatcherService& other) = delete;
  37. };
  38. NS_IMPL_ISUPPORTS(NativeFileWatcherService, nsINativeFileWatcherService);
  39. } // namespace mozilla
  40. #endif // mozilla_nativefilewatcher_h__