KTextEditor
#include <recoveryinterface.h>
Public Member Functions | |
RecoveryInterface () | |
virtual | ~RecoveryInterface () |
virtual void | discardDataRecovery ()=0 |
virtual bool | isDataRecoveryAvailable () const =0 |
virtual void | recoverData ()=0 |
Detailed Description
Document extension interface to control crash recovery.
When the system or the application using the editor component crashed with unsaved changes in the Document, the View notifies the user about the lost data and asks, whether the data should be recovered.
This interface gives you control over the data recovery process. Use isDataRecoveryAvailable() to check for lost data. If you do not want the editor component to handle the data recovery process automatically, you can either trigger the data recovery by calling recoverData() or discard it by discardDataRecovery().
- Since
- 4.6
Definition at line 44 of file recoveryinterface.h.
Constructor & Destructor Documentation
RecoveryInterface::RecoveryInterface | ( | ) |
Constructor.
Definition at line 310 of file ktexteditor.cpp.
|
virtual |
Virtual destructor.
Definition at line 314 of file ktexteditor.cpp.
Member Function Documentation
|
pure virtual |
If recover data is available, calling discardDataRecovery() will discard the recover data and the recover data is lost.
If isDataRecoveryAvailable() returns false, calling this function does nothing.
- See also
- isDataRecoveryAvailable(), recoverData()
|
pure virtual |
Returns whether a recovery is available for the current document.
- See also
- recoverData(), discardDataRecovery()
|
pure virtual |
If recover data is available, calling recoverData() will trigger the recovery of the data.
If isDataRecoveryAvailable() returns false, calling this function does nothing.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.