44 #include <QtCore/QFileSystemWatcher> 86 QFileSystemWatcher::addPath(path.
toQString());
92 QFileSystemWatcher::removePath(path.
toQString());
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:78
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void timerTriggered_()
Slot that is called when the delay is over.
~FileWatcher() override
Destructor.
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:84
void removeFile(const String &path)
removes a file from the watcher
Definition: FileWatcher.h:90
FileWatcher(QObject *parent=nullptr)
Constructor.
void fileChanged(const String &)
Delayed file change signal.
Map< QString, QString > timers_
A map that links timer name and file.
Definition: FileWatcher.h:107
Watcher that monitors file changes.
Definition: FileWatcher.h:65
double delay_in_seconds_
Delay (seconds)
Definition: FileWatcher.h:109