27 #include <sbIWatchFolderService.h>
29 #include <nsComponentManagerUtils.h>
30 #include <nsServiceManagerUtils.h>
42 , mIsIgnoring(PR_FALSE)
52 NS_WARN_IF_FALSE(NS_SUCCEEDED(rv),
53 "Could not remove a file path from the watchfolders ignore list!");
60 mWatchPath = aWatchPath;
63 mWFService = do_GetService(
"@songbirdnest.com/watch-folder-service;1", &rv);
64 NS_ENSURE_SUCCESS(rv, rv);
66 PRBool isRunning = PR_FALSE;
67 rv = mWFService->GetIsRunning(&isRunning);
68 NS_ENSURE_SUCCESS(rv, rv);
76 rv = mWFService->AddIgnorePath(mWatchPath);
77 NS_ENSURE_SUCCESS(rv, rv);
79 mIsIgnoring = PR_TRUE;
NS_DECL_ISUPPORTS nsresult Init(nsAString const &aWatchPath)
virtual ~sbAutoIgnoreWatchFolderPath()
#define SB_UNUSED_IN_RELEASE(decl)