13#include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
22#include <QtCore/QFileSystemWatcher>
57 delay_in_seconds_ = delay;
63 QFileSystemWatcher::addPath(
toQString(path));
69 QFileSystemWatcher::removePath(
toQString(path));
Watcher that monitors file changes.
Definition FileWatcher.h:44
std::map< QString, QString > timers_
A map that links timer name and file.
Definition FileWatcher.h:84
void fileChanged(const String &)
Delayed file change signal.
void removeFile(const String &path)
removes a file from the watcher
Definition FileWatcher.h:67
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:55
~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:86
void addFile(const String &path)
Adds a file to the watcher.
Definition FileWatcher.h:61
FileWatcher(QObject *parent=nullptr)
Constructor.
A more convenient string class.
Definition String.h:32
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
QString toQString(const String &s)
Convert OpenMS::String to QString (replaces String::toQString())
Definition Qt5Port.h:42