KIO
KIO::FileUndoManager::UiInterface Class Reference
#include <fileundomanager.h>
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.
Public Member Functions | |
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 |
UiInterface () | |
virtual void | virtual_hook (int id, void *data) |
virtual | ~UiInterface () |
Constructor & Destructor Documentation
FileUndoManager::UiInterface::UiInterface | ( | ) |
Definition at line 735 of file fileundomanager.cpp.
FileUndoManager::UiInterface::~UiInterface | ( | ) | [virtual] |
Definition at line 740 of file fileundomanager.cpp.
Member Function Documentation
bool FileUndoManager::UiInterface::confirmDeletion | ( | const KUrl::List & | files | ) | [virtual] |
Called when we are about to remove those files.
Return true if we should proceed with deleting them.
Definition at line 767 of file fileundomanager.cpp.
bool FileUndoManager::UiInterface::copiedFileWasModified | ( | const KUrl & | src, | |
const KUrl & | dest, | |||
const KDateTime & | srcTime, | |||
const KDateTime & | destTime | |||
) | [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 750 of file fileundomanager.cpp.
void FileUndoManager::UiInterface::jobError | ( | KIO::Job * | job | ) | [virtual] |
Called when an undo job errors; default implementation displays a message box.
Definition at line 745 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 775 of file fileundomanager.cpp.
void FileUndoManager::UiInterface::setParentWidget | ( | QWidget * | parentWidget | ) |
Sets the parent widget to use for message boxes.
Definition at line 780 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 785 of file fileundomanager.cpp.
bool FileUndoManager::UiInterface::showProgressInfo | ( | ) | const |
- Returns:
- whether progress info dialogs are shown while undoing.
Definition at line 790 of file fileundomanager.cpp.
void FileUndoManager::UiInterface::virtual_hook | ( | int | id, | |
void * | data | |||
) | [virtual] |
Definition at line 795 of file fileundomanager.cpp.
The documentation for this class was generated from the following files: