13#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
21#include <QtCore/QFileSystemWatcher>
56 delay_in_seconds_ = delay;
62 QFileSystemWatcher::addPath(path.
toQString());
68 QFileSystemWatcher::removePath(path.
toQString());
Watcher that monitors file changes.
Definition FileWatcher.h:43
std::map< QString, QString > timers_
A map that links timer name and file.
Definition FileWatcher.h:83
void fileChanged(const String &)
Delayed file change signal.
void removeFile(const String &path)
removes a file from the watcher
Definition FileWatcher.h:66
void timerTriggered_()
Slot that is called when the delay is over.
void setDelayInSeconds(double delay)
Sets the delay in seconds (default: 1s)
Definition FileWatcher.h:54
~FileWatcher() override
Destructor.
void monitorFileChanged_(const QString &name)
Slot that is connected to the fileChanged signal in order to track the changes.
double delay_in_seconds_
Delay (seconds)
Definition FileWatcher.h:85
void addFile(const String &path)
Adds a file to the watcher.
Definition FileWatcher.h:60
FileWatcher(QObject *parent=nullptr)
Constructor.
A more convenient string class.
Definition String.h:34
QString toQString() const
Conversion to Qt QString.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19