• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::FileUndoManager::UiInterface

KIO::FileUndoManager::UiInterface Class Reference

Interface for the gui handling of FileUndoManager. More...

#include <fileundomanager.h>

List of all members.


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 ()

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 737 of file fileundomanager.cpp.

FileUndoManager::UiInterface::~UiInterface (  )  [virtual]

Definition at line 742 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 769 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 752 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 747 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 777 of file fileundomanager.cpp.

void FileUndoManager::UiInterface::setParentWidget ( QWidget *  parentWidget  ) 

Sets the parent widget to use for message boxes.

Definition at line 782 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 787 of file fileundomanager.cpp.

bool FileUndoManager::UiInterface::showProgressInfo (  )  const

Returns:
whether progress info dialogs are shown while undoing.

Definition at line 792 of file fileundomanager.cpp.

void FileUndoManager::UiInterface::virtual_hook ( int  id,
void *  data 
) [virtual]

For internal use only.

, for future extensions

Definition at line 797 of file fileundomanager.cpp.


The documentation for this class was generated from the following files:
  • fileundomanager.h
  • fileundomanager.cpp

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal