Source

NPAPI-chrome-file-api / FileWatcher.h

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

#ifndef FireBreath_FileWatcher_h
#define FireBreath_FileWatcher_h

#include <string>
#include "APITypes.h"

class FileWatcher
{
public:
    static FileWatcher* get();
    virtual void WatchFile(std::string key, std::string path, FB::JSObjectPtr callback)=0;
    virtual void StopWatching(std::string key)=0;

protected:
    FileWatcher(){}
    virtual ~FileWatcher(){}
};

#endif