• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
renamedlg.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
3  David Faure <faure@kde.org>
4  2001 Holger Freyther <freyther@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef __kio_rename_dlg__
23 #define __kio_rename_dlg__
24 
25 #include <kurl.h>
26 #include <tqdialog.h>
27 #include <tqstring.h>
28 #include <sys/types.h>
29 
30 #include <kio/global.h>
31 
32 namespace KIO {
33 
34 // KDE4: get rid of M_OVERWRITE_ITSELF, trigger it internally if src==dest
35 enum RenameDlg_Mode { M_OVERWRITE = 1, M_OVERWRITE_ITSELF = 2, M_SKIP = 4, M_SINGLE = 8, M_MULTI = 16, M_RESUME = 32, M_NORENAME = 64 };
36 
40 enum RenameDlg_Result { R_RESUME = 6, R_RESUME_ALL = 7, R_OVERWRITE = 4, R_OVERWRITE_ALL = 5, R_SKIP = 2, R_AUTO_SKIP = 3, R_RENAME = 1, R_CANCEL = 0 };
41 
42 
48 class KIO_EXPORT RenameDlg : public TQDialog
49 {
50  Q_OBJECT
51 public:
68  RenameDlg( TQWidget *parent, const TQString & caption,
69  // KDE4: make those KURLs, and use pathOrURL() internally.
70  const TQString & src, const TQString & dest,
71  RenameDlg_Mode mode,
72  KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
73  KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
74  time_t ctimeSrc = (time_t) -1,
75  time_t ctimeDest = (time_t) -1,
76  time_t mtimeSrc = (time_t) -1,
77  time_t mtimeDest = (time_t) -1,
78  bool modal = false );
79  ~RenameDlg();
80 
85  KURL newDestURL();
86 
94  static TQString suggestName(const KURL& baseURL, const TQString& oldName);
95 
96 public slots:
98  void b0Pressed();
99  void b1Pressed();
100  void b2Pressed();
101  void b3Pressed();
102  void b4Pressed();
103  void b5Pressed();
104  void b6Pressed();
105  void b7Pressed();
106  void b8Pressed();
107 
108 protected slots:
109  void enableRenameButton(const TQString &);
110 private:
111  class RenameDlgPrivate;
112  RenameDlgPrivate *d;
113  void pluginHandling( );
114 };
115 
138 KIO_EXPORT RenameDlg_Result open_RenameDlg( const TQString & caption,
139  // KDE4: make those KURLs
140  const TQString& src, const TQString & dest,
141  RenameDlg_Mode mode, TQString& newDestPath,
142  KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
143  KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
144  time_t ctimeSrc = (time_t) -1,
145  time_t ctimeDest = (time_t) -1,
146  time_t mtimeSrc = (time_t) -1,
147  time_t mtimeDest = (time_t) -1
148  );
149 
152 }
153 #endif
KIO::RenameDlg
A dialog for the options to rename two files.
Definition: renamedlg.h:48
KIO::filesize_t
TQ_ULLONG filesize_t
64-bit file size
Definition: global.h:39
KIO::RenameDlg_Result
RenameDlg_Result
The result of open_RenameDlg().
Definition: renamedlg.h:40

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |