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

KIO

renamedialog.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2000 Stephan Kulow <coolo@kde.org>
00003                        David Faure <faure@kde.org>
00004                   2001 Holger Freyther <freyther@kde.org>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KIO_RENAMEDIALOG_H
00023 #define KIO_RENAMEDIALOG_H
00024 
00025 #include <kurl.h>
00026 #include <QtGui/QDialog>
00027 #include <QtCore/QString>
00028 #include <sys/types.h>
00029 
00030 #include <kio/global.h>
00031 
00032 namespace KIO {
00033 
00034 // KDE5: get rid of M_OVERWRITE_ITSELF, trigger it internally if src==dest
00035 // KDE5: get rid of M_SINGLE. If not multi, then single ;)
00036 // KDE5: use QFlags to get rid of all the casting!
00049 enum RenameDialog_Mode { M_OVERWRITE = 1, M_OVERWRITE_ITSELF = 2, M_SKIP = 4, M_SINGLE = 8, M_MULTI = 16, M_RESUME = 32, M_NORENAME = 64, M_ISDIR = 128 };
00050 
00054 enum RenameDialog_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 };
00055 
00056 
00061 class KIO_EXPORT RenameDialog : public QDialog
00062 {
00063   Q_OBJECT
00064 public:
00080   RenameDialog( QWidget *parent, const QString & caption,
00081              const KUrl & src, const KUrl & dest,
00082              RenameDialog_Mode mode,
00083              KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
00084              KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
00085              time_t ctimeSrc = (time_t) -1,
00086              time_t ctimeDest = (time_t) -1,
00087              time_t mtimeSrc = (time_t) -1,
00088              time_t mtimeDest = (time_t) -1 );
00089   ~RenameDialog();
00090 
00095   KUrl newDestUrl();
00096 
00103   static QString suggestName(const KUrl& baseURL, const QString& oldName);
00104 
00105 public Q_SLOTS:
00106   void cancelPressed();
00107   void renamePressed();
00108   void skipPressed();
00109   void autoSkipPressed();
00110   void overwritePressed();
00111   void overwriteAllPressed();
00112   void resumePressed();
00113   void resumeAllPressed();
00114   void suggestNewNamePressed();
00115 
00116 protected Q_SLOTS:
00117   void enableRenameButton(const QString &);
00118 private:
00119  class RenameDialogPrivate;
00120  RenameDialogPrivate* const d;
00121  void pluginHandling( );
00122 };
00123 
00124 
00125 }
00126 #endif

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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