]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileMonitor.h
LyX 2.1 will support only Qt>=4.5.
[lyx.git] / src / support / FileMonitor.h
index 2c2131025195e1b819346ac49e1e7c0cbc729b1c..3f0b91785b3a56917b946b52344781942551d519 100644 (file)
@@ -15,8 +15,6 @@
 #ifndef FILEMONITOR_H
 #define FILEMONITOR_H
 
-#include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
 #include <boost/signal.hpp>
 
 namespace lyx {
@@ -24,14 +22,17 @@ namespace support {
 
 class FileName;
 
-class FileMonitor : boost::noncopyable {
+class FileMonitor
+{
 public:
        /** Once monitoring begins, the file will be monitored every
         *  interval ms.
+        *
+        * FIXME: rewrite and simplify using an encapsulation of QFileSystemWatcher.
         */
        FileMonitor(FileName const & file_with_path, int interval);
 
-       /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
+       /// Destructor
        ~FileMonitor();
 
        ///
@@ -60,11 +61,14 @@ public:
        boost::signals::connection connect(slot_type const &) const;
 
 private:
+       /// noncopyable
+       FileMonitor(FileMonitor const &);
+       void operator=(FileMonitor const &);
+
        /// Use the Pimpl idiom to hide the internals.
        class Impl;
-
        /// The pointer never changes although *pimpl_'s contents may.
-       boost::scoped_ptr<Impl> const pimpl_;
+       Impl * const pimpl_;
 };
 
 } // namespace support