]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/filemonitor.h
Add move semantics to Variant
[libs/core.git] / source / fs / filemonitor.h
index e96aff66637d239b5fd31a996ce544d4eb385bbc..3ce5d79db2dc991ac562e0bb30f44df5cf11dee7 100644 (file)
@@ -1,15 +1,15 @@
 #ifndef FILEMONITOR_H_
 #define FILEMONITOR_H_
 
+#include <msp/core/mspcore_api.h>
 #include <msp/core/noncopyable.h>
 #include <msp/fs/path.h>
 #include <msp/io/eventdispatcher.h>
-#include <msp/io/eventobject.h>
 
 namespace Msp {
 namespace FS {
 
-class FileMonitor: NonCopyable
+class MSPCORE_API FileMonitor: NonCopyable
 {
 private:
        struct Private;
@@ -17,16 +17,16 @@ private:
        struct MonitoredFile
        {
                FS::Path path;
-               bool modified;
-               int tag;
+               bool modified = false;
+               int tag = -1;
        };
 
 public:
        sigc::signal<void, const FS::Path &> signal_file_modified;
 
 private:
-       Private *priv;
-       IO::EventDispatcher *event_disp;
+       Private *priv = nullptr;
+       IO::EventDispatcher *event_disp = nullptr;
        std::vector<MonitoredFile> files;
 
 public: