 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkCmdLineModuleDirectoryWatcher_h
22 #define __ctkCmdLineModuleDirectoryWatcher_h
24 #include <ctkCommandLineModulesCoreExport.h>
27 #include <QScopedPointer>
30 class ctkCmdLineModuleDirectoryWatcherPrivate;
124 QScopedPointer<ctkCmdLineModuleDirectoryWatcherPrivate> d;
128 #endif // __ctkCmdLineModuleDirectoryWatcher_h
Provides directory scanning and file watching via QFileSystemWatcher to automatically load new module...
Main manager class to handle loading and unloading of modules.
QStringList commandLineModules() const
Returns the complete list of files (command line executables) currently being watched.
QStringList additionalModules() const
Gets the list of additional command line executable, where "additional" means "in addition to those d...
void setDebug(bool debug)
Set the watcher into debug mode, for more output.
QStringList directories() const
Returns the list of directories currently being watched.
void errorDetected(const QString &)
Signals that an error was detected, and the caller should raise an error to the user.
void setAdditionalModules(const QStringList &files)
Sets an additional list of command line executables to watch.
virtual ~ctkCmdLineModuleDirectoryWatcher()
void setDirectories(const QStringList &directories)
Set the directories to be watched.
void emitErrorDectectedSignal(const QString &)
public method to emit the errorDetected signal.
ctkCmdLineModuleDirectoryWatcher(ctkCmdLineModuleManager *moduleManager)