# class RenameDialogPlugin

### abstract

Module | kio
Namespace | KIO
Class | RenameDialogPlugin
Inherits | QWidget

Base class for RenameDialog plugins.

Creating your own RenameDialog Plugin allows you to have a different representation of data depending on the to be copied files.

### methods

- RenameDialogPlugin (dialog)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  dialog | QDialog |

- handle (mode, srcFile, dstFile)

  returns Nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  mode | KIO.RenameDialog_Mode |
  srcFile | KIO::RenameDialogPlugin.FileItem |
  dstFile | KIO::RenameDialogPlugin.FileItem |

  Present the data of srcFile - and dstFile - the way you want to. You will be embedded into the parentWidget().

  mode - The actual mode of the Rename Dialog

  srcFile - The FileItem of the source

  dstFile - The FileItem of the destination

- wantToHandle (mode, srcFile, dstFile)

  returns bool
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  mode | KIO.RenameDialog_Mode |
  srcFile | KIO::RenameDialogPlugin.FileItem |
  dstFile | KIO::RenameDialogPlugin.FileItem |

  This function will be invoked by the KIO.RenameDialog to check if you to handle the src and destination file.

  mode - The actual mode of the Rename Dialog

  srcFile - The FileItem representation of the source file

  dstFile - The FileItem representation of the destination file

  Returns Return TRUE if you want to handle/display a resolution

  See also handle