#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;
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: