KIO::FileUndoManager::UiInterface
#include <fileundomanager.h>
Public Types | |
enum | { HookGetAskUserActionInterface = 1 } |
Public Member Functions | |
virtual bool | copiedFileWasModified (const QUrl &src, const QUrl &dest, const QDateTime &srcTime, const QDateTime &destTime) |
virtual void | jobError (KIO::Job *job) |
QWidget * | parentWidget () const |
void | setParentWidget (QWidget *parentWidget) |
void | setShowProgressInfo (bool b) |
bool | showProgressInfo () const |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
Interface for the gui handling of FileUndoManager.
This includes three events currently:
- error when undoing a job
- (until KF 5.78) confirm deletion before undoing a copy job
- confirm deletion when the copied file has been modified afterwards
By default UiInterface shows message boxes in all three cases; applications can reimplement this interface to provide different user interfaces.
Definition at line 56 of file fileundomanager.h.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Definition at line 94 of file fileundomanager.h.
Constructor & Destructor Documentation
◆ UiInterface()
FileUndoManager::UiInterface::UiInterface | ( | ) |
Definition at line 710 of file fileundomanager.cpp.
Member Function Documentation
◆ copiedFileWasModified()
|
virtual |
Called when dest was modified since it was copied from src.
Note that this is called after confirmDeletion. Return true if we should proceed with deleting dest.
Definition at line 722 of file fileundomanager.cpp.
◆ jobError()
|
virtual |
Called when an undo job errors; default implementation displays a message box.
Definition at line 717 of file fileundomanager.cpp.
◆ parentWidget()
QWidget * FileUndoManager::UiInterface::parentWidget | ( | ) | const |
- Returns
- the parent widget passed to the last call to undo(parentWidget), or
nullptr
.
Definition at line 746 of file fileundomanager.cpp.
◆ setParentWidget()
void FileUndoManager::UiInterface::setParentWidget | ( | QWidget * | parentWidget | ) |
Sets the parent widget to use for message boxes.
Definition at line 751 of file fileundomanager.cpp.
◆ setShowProgressInfo()
void FileUndoManager::UiInterface::setShowProgressInfo | ( | bool | b | ) |
Sets whether to show progress info when running the KIO jobs for undoing.
Definition at line 756 of file fileundomanager.cpp.
◆ showProgressInfo()
bool FileUndoManager::UiInterface::showProgressInfo | ( | ) | const |
- Returns
- whether progress info dialogs are shown while undoing.
Definition at line 761 of file fileundomanager.cpp.
◆ virtual_hook()
|
virtual |
, for future extensions
Definition at line 766 of file fileundomanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.