36 #ifndef OPENMS_SYSTEM_FILEWATCHER_H 37 #define OPENMS_SYSTEM_FILEWATCHER_H 45 #include <QtCore/QFileSystemWatcher> 87 QFileSystemWatcher::addPath(path.
toQString());
93 QFileSystemWatcher::removePath(path.
toQString());
116 #endif // OPENMS_SYSTEM_FILE_H QString toQString() const
Conversion to Qt QString.
A more convenient string class.
Definition: String.h:57
void setDelayInSeconds(double delay)
Sets the delay in seconds (default: 1s)
Definition: FileWatcher.h:79
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
FileWatcher(QObject *parent=0)
Constructor.
void timerTriggered_()
Slot that is called when the delay is over.
void monitorFileChanged_(const QString &name)
Slot that is connected to the fileChanged signal in order to track the changes.
void addFile(const String &path)
Adds a file to the watcher.
Definition: FileWatcher.h:85
virtual ~FileWatcher()
Destructor.
void removeFile(const String &path)
removes a file from the watcher
Definition: FileWatcher.h:91
void fileChanged(const String &)
Delayed file change signal.
Map< QString, QString > timers_
A map that links timer name and file.
Definition: FileWatcher.h:108
Watcher that monitors file changes.
Definition: FileWatcher.h:66
double delay_in_seconds_
Delay (seconds)
Definition: FileWatcher.h:110