Source

NPAPI-chrome-file-api / X11 / FileWatcherX11.h

/*
 * FileWatcherX11.h
 *
 *  Created on: 22/05/2012
 *      Author: ryan
 */

#ifndef FILEWATCHERX11_H_
#define FILEWATCHERX11_H_

#include <map>
#include "../FileWatcher.h"
#include "FileWatcherTaskX11.h"

class FileWatcherX11 : public FileWatcher{

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

#endif /* FILEWATCHERX11_H_ */