27 #ifndef sbMacFileSystemWatcher_h_
28 #define sbMacFileSystemWatcher_h_
31 #include <sbIFileSystemWatcher.h>
33 #include <nsStringAPI.h>
35 #include <CoreServices/CoreServices.h>
49 const nsAString & aRootPath,
56 NS_IMETHOD
OnTreeReady(
const nsAString & aTreeRootPath,
61 void *aClientCallbackInfo,
63 const char *
const aEventPaths[],
64 const FSEventStreamEventFlags aEventFlags[],
65 const FSEventStreamEventId aEventIds[]);
69 FSEventStreamRef mStream;
70 FSEventStreamContext *mContext;
73 #endif // sbMacFileSystemWatcher_h_
static void FSEventCallback(ConstFSEventStreamRef aStreamRef, void *aClientCallbackInfo, size_t aNumEvents, const char *const aEventPaths[], const FSEventStreamEventFlags aEventFlags[], const FSEventStreamEventId aEventIds[])
nsTArray< nsString > sbStringArray
virtual ~sbMacFileSystemWatcher()
NS_IMETHOD StopWatching(PRBool aShouldSaveSession)
NS_IMETHOD InitWithSession(const nsACString &aSessionGuid, sbIFileSystemListener *aListener)
nsTArray< nsString > sbStringArray
void OnFileSystemEvents(const sbStringArray &aEventPaths)
NS_IMETHOD OnTreeReady(const nsAString &aTreeRootPath, sbStringArray &aDirPathArray)
NS_IMETHOD Init(sbIFileSystemListener *aListener, const nsAString &aRootPath, PRBool aIsRecursive)