15 #ifndef BORNAGAIN_GUI_COREGUI_MAINWINDOW_AUTOSAVECONTROLLER_H
16 #define BORNAGAIN_GUI_COREGUI_MAINWINDOW_AUTOSAVECONTROLLER_H
Triggers autosave request after some accumulated ammount of document changes.
void setAutosaveTime(int timerInterval)
Sets autosave time (in msec)
void setDocumentConnected(bool set_connected)
void setDocument(ProjectDocument *document)
void onDocumentModified()
void onDocumentDestroyed(QObject *object)
void removeAutosaveDir()
remove auto save directory for given project and all its content
ProjectDocument * m_document
AutosaveController(QObject *parent=0)
QString autosaveName() const
bool assureAutoSaveDirExists() const
Tries to make sure that the directory for auto saving exists.
QString autosaveDir() const
The complete path to the autosave dir (e.g. '/projects/Untitled2/autosave').
Project document class handles all data related to the opened project (sample, jobModel,...
The UpdateTimer class accumulates update requests during certain period of time, and at the end of th...