X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FFileMonitor.h;h=9523bf1e7d5a158cff52c73c79aaf4c6832b2432;hb=2515a3bded01e27dcc3b19502e649f01fff5ace0;hp=4c59c9d5195ef5ad2732988ef5c203f7c161956b;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/support/FileMonitor.h b/src/support/FileMonitor.h index 4c59c9d519..9523bf1e7d 100644 --- a/src/support/FileMonitor.h +++ b/src/support/FileMonitor.h @@ -15,30 +15,30 @@ #ifndef FILEMONITOR_H #define FILEMONITOR_H -#include "LString.h" - #include #include -#include +#include namespace lyx { namespace support { +class FileName; + class FileMonitor : boost::noncopyable { public: /** Once monitoring begins, the file will be monitored every * interval ms. */ - FileMonitor(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(string const & file_with_path) const; + void reset(FileName const & file_with_path) const; /// - string const & filename() const; + FileName const & filename() const; /// Begin monitoring the file void start() const; @@ -54,7 +54,8 @@ public: unsigned long checksum() const; /// Connect and you'll be informed when the file has changed. - typedef boost::signal0::slot_type slot_type; + typedef boost::signal FileChangedSig; + typedef FileChangedSig::slot_type slot_type; /// boost::signals::connection connect(slot_type const &) const;