1 #ifndef WS_UTIL_FILESYSTEMWATCHER_H_INCLUDED 
    2 #define WS_UTIL_FILESYSTEMWATCHER_H_INCLUDED 
   24 #include <QFileSystemWatcher> 
   49                 w.addPath(QString::fromStdString(p));
 
   62                 w.addPath(QString::fromStdString(p));
 
   86                                 connect(&w, SIGNAL(directoryChanged(
const QString&)), 
this, SLOT(SLOT_Changed(
const QString&)));
 
   87                                 connect(&w, SIGNAL(fileChanged(
const QString&)), 
this, SLOT(SLOT_Changed(
const QString&)));
 
   89                                 disconnect(&w, 0, 0, 0); 
 
   96         void SLOT_Changed(
const QString& ) {
 
  101         QFileSystemWatcher      w;
 
  103         std::function<void()>   c;
 
  111 #endif // end_of_inclde_guard 
Utility class for being informed about changes to a file/directory on the filesystem. 
 
void SetActive(bool a)
Set 'active' property, i.e. 
 
FileSystemWatcher(FileSystemWatcher &&other)
Move constructor. 
 
FileSystemWatcher(const std::string &path, std::function< void()> callback)
 
see the online Qt documentation 
 
Namespace for generic graphical shell for simulators. 
 
bool IsActive() const 
Get 'active' property, i.e.