| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# renamedlg.h

    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., 59 Temple Place - Suite 330,
    00019     Boston, MA 02111-1307, USA.
    00020 */
    00021
    00022 #ifndef __kio_rename_dlg__
    00023 #define __kio_rename_dlg__ "$Id: renamedlg.h,v 1.6 2002/09/28 14:41:43 tjansen Exp $"
    00024
    00025 #include <kurl.h>
    00026 #include <qdialog.h>
    00027 #include <qstring.h>
    00028 #include <sys/types.h>
    00029
    00030 #include <kio/global.h>
    00031
    00032 namespace KIO {
    00033
    00034 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 };
    00035
    00036 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 };
    00037
    00038
    00043 class RenameDlg : public QDialog
    00044 {
    00045   Q_OBJECT
    00046 public:
    00066   RenameDlg( QWidget *parent, const QString & caption,
    00067              const QString & src, const QString & dest, RenameDlg_Mode mode,
    00068              KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
    00069              KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
    00070              time_t ctimeSrc = (time_t) -1,
    00071              time_t ctimeDest = (time_t) -1,
    00072              time_t mtimeSrc = (time_t) -1,
    00073              time_t mtimeDest = (time_t) -1,
    00074              bool modal = FALSE );
    00075   ~RenameDlg();
    00076
    00081   KURL newDestURL();
    00082
    00083
    00084
    00085 public slots:
    00086   void b0Pressed();
    00087   void b1Pressed();
    00088   void b2Pressed();
    00089   void b3Pressed();
    00090   void b4Pressed();
    00091   void b5Pressed();
    00092   void b6Pressed();
    00093   void b7Pressed();
    00094   void b8Pressed();
    00095
    00096 protected slots:
    00097   void enableRenameButton(const QString &);
    00098 private:
    00099  class RenameDlgPrivate;
    00100  RenameDlgPrivate *d;
    00101  void pluginHandling( );
    00102  QString mime( const QString &string );
    00103 };
    00104
    00129 RenameDlg_Result open_RenameDlg( const QString & caption,
    00130                                  const QString& src, const QString & dest,
    00131                                  RenameDlg_Mode mode, QString& newDestPath,
    00132                                  KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
    00133                                  KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
    00134                                  time_t ctimeSrc = (time_t) -1,
    00135                                  time_t ctimeDest = (time_t) -1,
    00136                                  time_t mtimeSrc = (time_t) -1,
    00137                                  time_t mtimeDest = (time_t) -1
    00138                                  );
    00139
    00142 }
    00143 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:14:37 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001