Source

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

Full commit
unknown f8d99d0 





















#pragma once

#include "JSObject.h"
#include "windows.h"

class FileWatcherTaskWin
{
public:
	FileWatcherTaskWin(){stop = false;};
	~FileWatcherTaskWin(){};

	void Watch(std::string path, FB::JSObjectPtr callback);
	void StopWatching();

private:

	void ListenForFileEvents(std::string path, FB::JSObjectPtr callback);
	bool ShouldStop();
	
	HANDLE handle;
	bool stop;
	
};