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

KIO

  • kio
  • kio
jobuidelegate.h
Go to the documentation of this file.
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  Copyright (C) 2006 Kevin Ottens <ervin@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_JOBUIDELEGATE_H
23 #define KIO_JOBUIDELEGATE_H
24 
25 #include <kdialogjobuidelegate.h>
26 #include <kio/skipdialog.h>
27 #include <kio/renamedialog.h>
28 
29 class KJob;
30 namespace KIO
31 {
32 class Job;
33 
37 class KIO_EXPORT JobUiDelegate : public KDialogJobUiDelegate
38 {
39  Q_OBJECT
40 
41 public:
45  JobUiDelegate();
46 
50  virtual ~JobUiDelegate();
51 
52 public:
53 
59  virtual void setWindow(QWidget *window);
60 
81  virtual RenameDialog_Result askFileRename(KJob * job,
82  const QString & caption,
83  const QString& src,
84  const QString & dest,
85  KIO::RenameDialog_Mode mode,
86  QString& newDest,
87  KIO::filesize_t sizeSrc = KIO::filesize_t(-1),
88  KIO::filesize_t sizeDest = KIO::filesize_t(-1),
89  time_t ctimeSrc = time_t(-1),
90  time_t ctimeDest = time_t(-1),
91  time_t mtimeSrc = time_t(-1),
92  time_t mtimeDest = time_t(-1));
93 
98  virtual SkipDialog_Result askSkip(KJob * job,
99  bool multi,
100  const QString & error_text);
101 
107  enum DeletionType { Delete, Trash, EmptyTrash };
114  enum ConfirmationType { DefaultConfirmation, ForceConfirmation };
127  bool askDeleteConfirmation(const KUrl::List& urls, DeletionType deletionType,
128  ConfirmationType confirmationType);
129 
130 private:
131  class Private;
132  Private * const d;
133 };
134 }
135 
136 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Jun 5 2013 18:38:46 by doxygen 1.8.3.1 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-4.10.4 API Reference

Skip menu "kdelibs-4.10.4 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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