#include <AutoSaver.h>

Public Slots

void renameFile (QString dirName, QString file, QString tmpFile)
 

Public Member Functions

void setCompressed (bool on)
 
void setTimeout (int ms)
 

Static Public Member Functions

static AutoSaver * instance ()
 

Protected Member Functions

void saveDocument (const std::string &, AutoSaveProperty &)
 
void slotCreateDocument (const App::Document &Doc)
 
void slotDeleteDocument (const App::Document &Doc)
 
void timerEvent (QTimerEvent *event)
 

Detailed Description

The class AutoSaver is used to automatically save a document to a temporary file.

Author
Werner Mayer

Member Function Documentation

◆ instance()

◆ renameFile

void AutoSaver::renameFile ( QString  dirName,
QString  file,
QString  tmpFile 
)
slot

◆ saveDocument()

◆ setCompressed()

void AutoSaver::setCompressed ( bool  on)

Enables or disables to create compreesed recovery files.

Referenced by Gui::Application::runApplication().

◆ setTimeout()

void AutoSaver::setTimeout ( int  ms)

Sets the timeout in milliseconds. A value of 0 means that no timer is used.

Referenced by Gui::Application::runApplication(), and Gui::Dialog::DlgSettingsDocumentImp::saveSettings().

◆ slotCreateDocument()

◆ slotDeleteDocument()

void AutoSaver::slotDeleteDocument ( const App::Document &  Doc)
protected

◆ timerEvent()

void AutoSaver::timerEvent ( QTimerEvent *  event)
protected

The documentation for this class was generated from the following files:
  • src/Gui/AutoSaver.h
  • src/Gui/AutoSaver.cpp