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

kio

KIO::RenameDlg

KIO::RenameDlg Class Reference

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

#include <renamedlg.h>

Inheritance diagram for KIO::RenameDlg:

Inheritance graph
[legend]

List of all members.


Public Slots

void b0Pressed ()
void b1Pressed ()
void b2Pressed ()
void b3Pressed ()
void b4Pressed ()
void b5Pressed ()
void b6Pressed ()
void b7Pressed ()
void b8Pressed ()

Public Member Functions

KURL newDestURL ()
 RenameDlg (QWidget *parent, const QString &caption, const QString &src, const QString &dest, RenameDlg_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, bool modal=false)
 ~RenameDlg ()

Static Public Member Functions

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

Protected Slots

void enableRenameButton (const QString &)

Detailed Description

A dialog for the options to rename two files.

A dialog for renaming files.

Since:
3.1

Definition at line 48 of file renamedlg.h.


Constructor & Destructor Documentation

RenameDlg::RenameDlg ( QWidget *  parent,
const QString &  caption,
const QString &  src,
const QString &  dest,
RenameDlg_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,
bool  modal = false 
)

Construct a "rename" dialog.

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
modal set to true for a modal dialog
See also:
RenameDlg_Mode

Definition at line 84 of file renamedlg.cpp.

RenameDlg::~RenameDlg (  ) 

Definition at line 386 of file renamedlg.cpp.


Member Function Documentation

void RenameDlg::b0Pressed (  )  [slot]

KDE4: rename to cancelPressed(), renamePressed() etc.

Definition at line 417 of file renamedlg.cpp.

void RenameDlg::b1Pressed (  )  [slot]

Definition at line 423 of file renamedlg.cpp.

void RenameDlg::b2Pressed (  )  [slot]

Definition at line 492 of file renamedlg.cpp.

void RenameDlg::b3Pressed (  )  [slot]

Definition at line 497 of file renamedlg.cpp.

void RenameDlg::b4Pressed (  )  [slot]

Definition at line 502 of file renamedlg.cpp.

void RenameDlg::b5Pressed (  )  [slot]

Definition at line 507 of file renamedlg.cpp.

void RenameDlg::b6Pressed (  )  [slot]

Definition at line 512 of file renamedlg.cpp.

void RenameDlg::b7Pressed (  )  [slot]

Definition at line 517 of file renamedlg.cpp.

void RenameDlg::b8Pressed (  )  [slot]

Definition at line 480 of file renamedlg.cpp.

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

Definition at line 392 of file renamedlg.cpp.

KURL RenameDlg::newDestURL (  ) 

Returns:
the new destination valid only if RENAME was chosen

Definition at line 409 of file renamedlg.cpp.

QString RenameDlg::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.

Since:
3.4

Definition at line 438 of file renamedlg.cpp.


The documentation for this class was generated from the following files:
  • renamedlg.h
  • renamedlg.cpp

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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