• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

KTextEditor

  • KTextEditor
  • RecoveryInterface
Public Member Functions | List of all members
KTextEditor::RecoveryInterface Class Referenceabstract
Document Extension Interfaces

#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 311 of file ktexteditor.cpp.

RecoveryInterface::~RecoveryInterface ( )
virtual

Virtual destructor.

Definition at line 315 of file ktexteditor.cpp.

Member Function Documentation

virtual void KTextEditor::RecoveryInterface::discardDataRecovery ( )
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()
virtual bool KTextEditor::RecoveryInterface::isDataRecoveryAvailable ( ) const
pure virtual

Returns whether a recovery is available for the current document.

See also
recoverData(), discardDataRecovery()
virtual void KTextEditor::RecoveryInterface::recoverData ( )
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.

See also
isDataRecoveryAvailable(), discardDataRecovery()

The documentation for this class was generated from the following files:
  • recoveryinterface.h
  • ktexteditor.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal