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

KIO

  • KIO
  • RenameDialog
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
KIO::RenameDialog Class Reference

#include <renamedialog.h>

Inheritance diagram for KIO::RenameDialog:
Inheritance graph
[legend]

Public Slots

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

Public Member Functions

 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 ()
 
KUrl autoDestUrl () const
 
KUrl newDestUrl ()
 

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 70 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
parentparent widget (often 0)
captionthe caption for the dialog box
srcthe url to the file/dir we're trying to copy, as it's part of the text message
destthe path to destination file/dir, i.e. the one that already exists
modeparameters for the dialog (which buttons to show...),
sizeSrcsize of source file
sizeDestsize of destination file
ctimeSrccreation time of source file
ctimeDestcreation time of destination file
mtimeSrcmodification time of source file
mtimeDestmodification time of destination file
See also
RenameDialog_Mode

Definition at line 109 of file renamedialog.cpp.

RenameDialog::~RenameDialog ( )

Definition at line 348 of file renamedialog.cpp.

Member Function Documentation

KUrl RenameDialog::autoDestUrl ( ) const
Returns
an automatically renamed destination
Since
4.5 valid always

Definition at line 382 of file renamedialog.cpp.

void RenameDialog::autoSkipPressed ( )
slot

Definition at line 492 of file renamedialog.cpp.

void RenameDialog::cancelPressed ( )
slot

Definition at line 393 of file renamedialog.cpp.

void RenameDialog::enableRenameButton ( const QString &  newDest)
protectedslot

Definition at line 354 of file renamedialog.cpp.

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

Definition at line 372 of file renamedialog.cpp.

void RenameDialog::overwriteAllPressed ( )
slot

Definition at line 506 of file renamedialog.cpp.

void RenameDialog::overwritePressed ( )
slot

Definition at line 497 of file renamedialog.cpp.

void RenameDialog::renamePressed ( )
slot

Definition at line 399 of file renamedialog.cpp.

void RenameDialog::resumeAllPressed ( )
slot

Definition at line 520 of file renamedialog.cpp.

void RenameDialog::resumePressed ( )
slot

Definition at line 511 of file renamedialog.cpp.

void RenameDialog::skipPressed ( )
slot

Definition at line 483 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 419 of file renamedialog.cpp.

void RenameDialog::suggestNewNamePressed ( )
slot

Definition at line 469 of file renamedialog.cpp.


The documentation for this class was generated from the following files:
  • renamedialog.h
  • renamedialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal