X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FFileMonitor.h;h=9523bf1e7d5a158cff52c73c79aaf4c6832b2432;hb=2515a3bded01e27dcc3b19502e649f01fff5ace0;hp=ba84bb549e26d4918040f4df67e37699333f5c9c;hpb=ec94b42f515c771687a2f0b8ba9fb306081aaf47;p=lyx.git diff --git a/src/support/FileMonitor.h b/src/support/FileMonitor.h index ba84bb549e..9523bf1e7d 100644 --- a/src/support/FileMonitor.h +++ b/src/support/FileMonitor.h @@ -22,21 +22,23 @@ namespace lyx { namespace support { +class FileName; + class FileMonitor : boost::noncopyable { public: /** Once monitoring begins, the file will be monitored every * interval ms. */ - FileMonitor(std::string const & file_with_path, int interval); + FileMonitor(FileName const & file_with_path, int interval); /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy. ~FileMonitor(); /// - void reset(std::string const & file_with_path) const; + void reset(FileName const & file_with_path) const; /// - std::string const & filename() const; + FileName const & filename() const; /// Begin monitoring the file void start() const;