Source

NPAPI-chrome-file-api / Win / FileWatcherWin.h

Full commit
#pragma once

#define BOOST_FILESYSTEM_VERSION 3
#include <map>
#include "../FileWatcher.h"
#include "FileWatcherTaskWin.h"
#include <boost/filesystem.hpp>


class FileWatcherWin : public FileWatcher
{
public:
	void WatchFile(std::string key, std::string path, FB::JSObjectPtr callback);
    void StopWatching(std::string key);

protected:
	FileWatcherWin(void){};
	~FileWatcherWin(void){};
	friend class FileWatcher;
private:
	std::map<std::string,FileWatcherTaskWin*> watchers;
};