Source

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

//
//  FileWatcherMac.h
//  FireBreath
//
//  Created by Ryan Ackley on 5/17/12.
//  Copyright (c) 2012 Benryan Software Inc. All rights reserved.
//

#ifndef FileWatcherMac_h__
#define FileWatcherMac_h__

#include <map>
#include <CoreServices/CoreServices.h>
#include "../FileWatcher.h"
#import "FileWatcherTask.h"

class FileWatcherMac : public FileWatcher
{
public:
    void WatchFile(std::string key, std::string path, FB::JSObjectPtr callback);
    void StopWatching(std::string key);
    
protected:
    FileWatcherMac(){};
    ~FileWatcherMac(){};
    friend class FileWatcher;
private:
    std::map<std::string,FileWatcherTask*> watchers;
};
#endif