# class RenameDialog

###

Module | kio
Namespace | KIO
Class | RenameDialog
Inherits | QDialog

A dialog for the options to rename two files. A dialog for renaming files.

### methods

- RenameDialog (parent, caption, src, dest, mode, sizeSrc, sizeDest, ctimeSrc, ctimeDest, mtimeSrc, mtimeDest)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  caption | QString |
  src | KUrl |
  dest | KUrl |
  mode | KIO.RenameDialog_Mode |
  sizeSrc | KIO.filesize_t | -1
  sizeDest | KIO.filesize_t | -1
  ctimeSrc | time_t | -1
  ctimeDest | time_t | -1
  mtimeSrc | time_t | -1
  mtimeDest | time_t | -1

  Construct a "rename" dialog.

  parent - parent widget (often 0)

  caption - the caption for the dialog box

  src - the url to the file/dir we're trying to copy, as it's part of the text message

  dest - the path to destination file/dir, i.e. the one that already exists

  mode - parameters for the dialog (which buttons to show...),

  sizeSrc - size of source file

  sizeDest - size of destination file

  ctimeSrc - creation time of source file

  ctimeDest - creation time of destination file

  mtimeSrc - modification time of source file

  mtimeDest - modification time of destination file

  See also RenameDialog_Mode

- autoSkipPressed ( )

  returns Nothing

- cancelPressed ( )

  returns Nothing

- enableRenameButton (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- newDestUrl ( )

  returns KUrl

  Returns the new destination valid only if RENAME was chosen

- overwriteAllPressed ( )

  returns Nothing

- overwritePressed ( )

  returns Nothing

- renamePressed ( )

  returns Nothing

- resumeAllPressed ( )

  returns Nothing

- resumePressed ( )

  returns Nothing

- skipPressed ( )

  returns Nothing

- suggestName (baseURL, oldName)

  returns QString
  static

  Argument | Type | Default
  --- | --- | ---
  baseURL | KUrl |
  oldName | QString |

  Given a directory path and a filename (which usually exists already), this function returns a suggested name for a file that doesn't exist in that directory. The existence is only checked for local urls though. The suggested file name is of the form foo_1 foo_2 etc.

- suggestNewNamePressed ( )

  returns Nothing