KIO::RenameDialog Class
Header: | #include <KIO/RenameDialog> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) |
Inherits: | QDialog |
Public Functions
RenameDialog(QWidget *parent, const QString &title, const QUrl &src, const QUrl &dest, KIO::RenameDialog_Options options, KIO::filesize_t sizeSrc = KIO::filesize_t(-1), KIO::filesize_t sizeDest = KIO::filesize_t(-1), const QDateTime &ctimeSrc = QDateTime(), const QDateTime &ctimeDest = QDateTime(), const QDateTime &mtimeSrc = QDateTime(), const QDateTime &mtimeDest = QDateTime()) | |
QUrl | autoDestUrl() const |
QUrl | newDestUrl() |
Public Slots
void | cancelPressed() |
void | overwriteAllPressed() |
void | overwritePressed() |
void | overwriteWhenOlderPressed() |
void | renamePressed() |
void | resumeAllPressed() |
void | resumePressed() |
void | skipPressed() |
void | suggestNewNamePressed() |
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.
Member Function Documentation
RenameDialog::RenameDialog(QWidget *parent, const QString &title, const QUrl &src, const QUrl &dest, KIO::RenameDialog_Options options, KIO::filesize_t sizeSrc = KIO::filesize_t(-1), KIO::filesize_t sizeDest = KIO::filesize_t(-1), const QDateTime &ctimeSrc = QDateTime(), const QDateTime &ctimeDest = QDateTime(), const QDateTime &mtimeSrc = QDateTime(), const QDateTime &mtimeDest = QDateTime())
Construct a "rename" dialog to let the user know that src is about to overwrite dest.
parent parent widget (often 0)
title the title 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
options 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
QUrl RenameDialog::autoDestUrl() const
Returns an automatically renamed destination valid always
[slot]
void RenameDialog::cancelPressed()
QUrl RenameDialog::newDestUrl()
Returns the new destination valid only if RENAME was chosen