#include <externalchangemonitor.h>
Public Member Functions | |
ExternalChangeMonitor () | |
~ExternalChangeMonitor () | |
void | changeWorkDirectory (const char *workDirectory) |
void | startMonitoring () |
void | stopMonitoring () |
void | suspendMonitor () |
void | resumeMonitor () |
The class use FAM (File Alteration Monitor) register for changes in the project directories.
The use of the QSocketNotifier adds the monitoring of the FAM to the Qt main event loop and is documented at: http://oss.sgi.com/projects/fam/qt_gtk.html#qt FAM is documented many places most notably in the FAM man page.
|
Initializes the ExternalChangeMonitor and registers the animationModel to notify of changes when the disk representation of the animation is changed |
|
Calls stopMonitoring and cleans up. |
|
Register the current workdirectory for monitorng.
|
|
Resumes monitoring the directories. |
|
Creates a FAM connection to the project directories and starts a thread which polls the FAM connection for changes in the tmp directory. To register the working project directory for monitoring also call changeWorkDirectory |
|
Stops the thread polling the FAM connection and tears the connection down. |
|
Suspends the monitoring until resumeMonitor() is called. |