Source

NPAPI-chrome-file-api / Mac / FileWatcherTask.h

Full commit
//
//  FileWatcherTask.h
//  FireBreath
//
//  Created by Ryan Ackley on 5/18/12.
//  Copyright (c) 2012 Benryan Software Inc. All rights reserved.
//

#ifndef FileWatcherTask_h__
#define FileWatcherTask_h__

#import <Foundation/Foundation.h>
#include "JSObject.h"

@interface FileWatcherTask : NSObject
{
    NSMutableDictionary* pathModificationDates;
    NSDate* appStartedTimestamp;
    NSFileManager* fm;
    FSEventStreamRef stream;
    FB::JSObjectPtr callback;
    CFRunLoopRef runLoop;
}
-(id)initWithCallback:(FB::JSObjectPtr)obj;
-(void)listenForFileEvents:(NSString*)path;
-(void)postCallback:(NSString*)path;
-(void)stopWatching;
@end

#endif