RenameDialog Class Reference
from PyKDE4.kio import *
Inherits: QDialog → QWidget → QObject
Namespace: KIO.RenameDialog
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.
Methods |
| __init__ (self, QWidget parent, QString caption, KUrl src, KUrl dest, KIO.RenameDialog_Mode mode, KIO.filesize_t sizeSrc=-1, KIO.filesize_t sizeDest=-1, time_t ctimeSrc=-1, time_t ctimeDest=-1, time_t mtimeSrc=-1, time_t mtimeDest=-1) |
| autoSkipPressed (self) |
| cancelPressed (self) |
| enableRenameButton (self, QString a0) |
KUrl | newDestUrl (self) |
| overwriteAllPressed (self) |
| overwritePressed (self) |
| renamePressed (self) |
| resumeAllPressed (self) |
| resumePressed (self) |
| skipPressed (self) |
QString | suggestName (self, KUrl baseURL, QString oldName) |
| suggestNewNamePressed (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent, |
|
|
QString |
caption, |
|
|
KUrl |
src, |
|
|
KUrl |
dest, |
|
|
KIO.RenameDialog_Mode |
mode, |
|
|
KIO.filesize_t |
sizeSrc=-1, |
|
|
KIO.filesize_t |
sizeDest=-1, |
|
|
time_t |
ctimeSrc=-1, |
|
|
time_t |
ctimeDest=-1, |
|
|
time_t |
mtimeSrc=-1, |
|
|
time_t |
mtimeDest=-1 |
|
) |
|
|
|
enableRenameButton |
( |
self, |
|
|
|
QString |
a0 |
|
) |
|
|
|
- Returns:
- the new destination
valid only if RENAME was chosen
overwriteAllPressed |
( |
|
self ) |
|
overwritePressed |
( |
|
self ) |
|
resumeAllPressed |
( |
|
self ) |
|
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 |
( |
|
self ) |
|