KIO
#include <fileundomanager.h>
Public Member Functions | |
UiInterface () | |
virtual | ~UiInterface () |
virtual bool | confirmDeletion (const KUrl::List &files) |
virtual bool | copiedFileWasModified (const KUrl &src, const KUrl &dest, const KDateTime &srcTime, const KDateTime &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
- 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 63 of file fileundomanager.h.
Constructor & Destructor Documentation
FileUndoManager::UiInterface::UiInterface | ( | ) |
Definition at line 755 of file fileundomanager.cpp.
|
virtual |
Definition at line 760 of file fileundomanager.cpp.
Member Function Documentation
|
virtual |
Called when we are about to remove those files.
Return true if we should proceed with deleting them.
Definition at line 787 of file fileundomanager.cpp.
|
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 770 of file fileundomanager.cpp.
|
virtual |
Called when an undo job errors; default implementation displays a message box.
Definition at line 765 of file fileundomanager.cpp.
QWidget * FileUndoManager::UiInterface::parentWidget | ( | ) | const |
- Returns
- the parent widget passed to the last call to undo(parentWidget), or 0.
Definition at line 795 of file fileundomanager.cpp.
void FileUndoManager::UiInterface::setParentWidget | ( | QWidget * | parentWidget | ) |
Sets the parent widget to use for message boxes.
Definition at line 800 of file fileundomanager.cpp.
void FileUndoManager::UiInterface::setShowProgressInfo | ( | bool | b | ) |
Sets whether to show progress info when running the KIO jobs for undoing.
Definition at line 805 of file fileundomanager.cpp.
bool FileUndoManager::UiInterface::showProgressInfo | ( | ) | const |
- Returns
- whether progress info dialogs are shown while undoing.
Definition at line 810 of file fileundomanager.cpp.
|
virtual |
, for future extensions
Definition at line 815 of file fileundomanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.