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 5 #ifndef mozilla_nativefilewatcher_h__ 6 #define mozilla_nativefilewatcher_h__ 7 8 #include "nsINativeFileWatcher.h" 9 10 namespace mozilla { 11 12 class NativeFileWatcherService final : public nsINativeFileWatcherService { 13 public: 14 NS_DECL_ISUPPORTS 15 NativeFileWatcherService()16 NativeFileWatcherService(){}; 17 Init()18 nsresult Init() { return NS_OK; }; 19 AddPath(const nsAString & aPathToWatch,nsINativeFileWatcherCallback * aOnChange,nsINativeFileWatcherErrorCallback * aOnError,nsINativeFileWatcherSuccessCallback * aOnSuccess)20 NS_IMETHOD AddPath(const nsAString& aPathToWatch, 21 nsINativeFileWatcherCallback* aOnChange, 22 nsINativeFileWatcherErrorCallback* aOnError, 23 nsINativeFileWatcherSuccessCallback* aOnSuccess) override { 24 return NS_ERROR_NOT_IMPLEMENTED; 25 }; 26 RemovePath(const nsAString & aPathToRemove,nsINativeFileWatcherCallback * aOnChange,nsINativeFileWatcherErrorCallback * aOnError,nsINativeFileWatcherSuccessCallback * aOnSuccess)27 NS_IMETHOD RemovePath( 28 const nsAString& aPathToRemove, nsINativeFileWatcherCallback* aOnChange, 29 nsINativeFileWatcherErrorCallback* aOnError, 30 nsINativeFileWatcherSuccessCallback* aOnSuccess) override { 31 return NS_ERROR_NOT_IMPLEMENTED; 32 }; 33 34 private: ~NativeFileWatcherService()35 ~NativeFileWatcherService(){}; 36 NativeFileWatcherService(const NativeFileWatcherService& other) = delete; 37 void operator=(const NativeFileWatcherService& other) = delete; 38 }; 39 40 } // namespace mozilla 41 42 #endif // mozilla_nativefilewatcher_h__ 43