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

KIO

KIO::RenameDialog

KIO::RenameDialog Class Reference

The dialog shown when a CopyJob realizes that a destination file already exists, and wants to offer the user with the choice to either Rename, Overwrite, Skip; this dialog is also used when a .part file exists and the user can choose to Resume a previous download. More...

#include <renamedialog.h>

Inheritance diagram for KIO::RenameDialog:
QDialog

List of all members.

Public Slots

void autoSkipPressed ()
void cancelPressed ()
void overwriteAllPressed ()
void overwritePressed ()
void renamePressed ()
void resumeAllPressed ()
void resumePressed ()
void skipPressed ()
void suggestNewNamePressed ()

Public Member Functions

KUrl newDestUrl ()
 RenameDialog (QWidget *parent, const QString &caption, const KUrl &src, const KUrl &dest, RenameDialog_Mode mode, KIO::filesize_t sizeSrc=(KIO::filesize_t)-1, KIO::filesize_t sizeDest=(KIO::filesize_t)-1, time_t ctimeSrc=(time_t)-1, time_t ctimeDest=(time_t)-1, time_t mtimeSrc=(time_t)-1, time_t mtimeDest=(time_t)-1)
 ~RenameDialog ()

Static Public Member Functions

static QString suggestName (const KUrl &baseURL, const QString &oldName)

Protected Slots

void enableRenameButton (const QString &)

Detailed Description

The dialog shown when a CopyJob realizes that a destination file already exists, and wants to offer the user with the choice to either Rename, Overwrite, Skip; this dialog is also used when a .part file exists and the user can choose to Resume a previous download.

Definition at line 63 of file renamedialog.h.


Constructor & Destructor Documentation

RenameDialog::RenameDialog ( QWidget *  parent,
const QString &  caption,
const KUrl &  src,
const KUrl &  dest,
RenameDialog_Mode  mode,
KIO::filesize_t  sizeSrc = (KIO::filesize_t) -1,
KIO::filesize_t  sizeDest = (KIO::filesize_t) -1,
time_t  ctimeSrc = (time_t) -1,
time_t  ctimeDest = (time_t) -1,
time_t  mtimeSrc = (time_t) -1,
time_t  mtimeDest = (time_t) -1 
)

Construct a "rename" dialog to let the user know that src is about to overwrite dest.

Parameters:
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

Definition at line 79 of file renamedialog.cpp.

RenameDialog::~RenameDialog (  ) 

Definition at line 359 of file renamedialog.cpp.


Member Function Documentation

void RenameDialog::autoSkipPressed (  )  [slot]

Definition at line 470 of file renamedialog.cpp.

void RenameDialog::cancelPressed (  )  [slot]

Definition at line 390 of file renamedialog.cpp.

void RenameDialog::enableRenameButton ( const QString &  newDest  )  [protected, slot]

Definition at line 365 of file renamedialog.cpp.

KUrl RenameDialog::newDestUrl (  ) 
Returns:
the new destination valid only if RENAME was chosen

Definition at line 382 of file renamedialog.cpp.

void RenameDialog::overwriteAllPressed (  )  [slot]

Definition at line 480 of file renamedialog.cpp.

void RenameDialog::overwritePressed (  )  [slot]

Definition at line 475 of file renamedialog.cpp.

void RenameDialog::renamePressed (  )  [slot]

Definition at line 396 of file renamedialog.cpp.

void RenameDialog::resumeAllPressed (  )  [slot]

Definition at line 490 of file renamedialog.cpp.

void RenameDialog::resumePressed (  )  [slot]

Definition at line 485 of file renamedialog.cpp.

void RenameDialog::skipPressed (  )  [slot]

Definition at line 465 of file renamedialog.cpp.

QString RenameDialog::suggestName ( const KUrl &  baseURL,
const QString &  oldName 
) [static]

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.

Definition at line 411 of file renamedialog.cpp.

void RenameDialog::suggestNewNamePressed (  )  [slot]

Definition at line 453 of file renamedialog.cpp.


The documentation for this class was generated from the following files:
  • renamedialog.h
  • renamedialog.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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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