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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • 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  Copyright (C) 2013 Dawit Alemayehu <adawit@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef KIO_JOBUIDELEGATE_H
24 #define KIO_JOBUIDELEGATE_H
25 
26 #include <kdialogjobuidelegate.h>
27 #include <kio/skipdialog.h>
28 #include <kio/renamedialog.h>
29 #include <kio/global.h>
30 
31 class KJob;
32 namespace KIO
33 {
34 class Job;
35 
39 class KIO_EXPORT JobUiDelegate : public KDialogJobUiDelegate
40 {
41  Q_OBJECT
42 
43 public:
47  JobUiDelegate();
48 
52  virtual ~JobUiDelegate();
53 
54 public:
55 
61  virtual void setWindow(QWidget *window);
62 
83  virtual RenameDialog_Result askFileRename(KJob * job,
84  const QString & caption,
85  const QString& src,
86  const QString & dest,
87  KIO::RenameDialog_Mode mode,
88  QString& newDest,
89  KIO::filesize_t sizeSrc = KIO::filesize_t(-1),
90  KIO::filesize_t sizeDest = KIO::filesize_t(-1),
91  time_t ctimeSrc = time_t(-1),
92  time_t ctimeDest = time_t(-1),
93  time_t mtimeSrc = time_t(-1),
94  time_t mtimeDest = time_t(-1));
95 
100  virtual SkipDialog_Result askSkip(KJob * job,
101  bool multi,
102  const QString & error_text);
103 
109  enum DeletionType { Delete, Trash, EmptyTrash };
116  enum ConfirmationType { DefaultConfirmation, ForceConfirmation };
129  bool askDeleteConfirmation(const KUrl::List& urls, DeletionType deletionType,
130  ConfirmationType confirmationType);
131 
141  enum MessageBoxType {
142  QuestionYesNo = 1,
143  WarningYesNo = 2,
144  WarningContinueCancel = 3,
145  WarningYesNoCancel = 4,
146  Information = 5,
147  SSLMessageBox = 6
148  };
166  int requestMessageBox(MessageBoxType type, const QString& text,
167  const QString& caption,
168  const QString& buttonYes,
169  const QString& buttonNo,
170  const QString& iconYes = QString(),
171  const QString& iconNo = QString(),
172  const QString& dontAskAgainName = QString(),
173  const KIO::MetaData& sslMetaData = KIO::MetaData());
174 private:
175  class Private;
176  Private * const d;
177 };
178 }
179 
180 #endif
caption
QString caption()
Information
QWidget
KIO::filesize_t
qulonglong filesize_t
64-bit file size
Definition: global.h:57
KIO::JobUiDelegate::ConfirmationType
ConfirmationType
ForceConfirmation: always ask the user for confirmation DefaultConfirmation: don't ask the user if he...
Definition: jobuidelegate.h:116
KDialogJobUiDelegate
kdialogjobuidelegate.h
global.h
KIO::MetaData
MetaData is a simple map of key/value strings.
Definition: global.h:396
KIO::SkipDialog_Result
SkipDialog_Result
Definition: skipdialog.h:29
Delete
KIO::JobUiDelegate
A UI delegate tuned to be used with KIO Jobs.
Definition: jobuidelegate.h:39
KIO::JobUiDelegate::DeletionType
DeletionType
The type of deletion: real deletion, moving the files to the trash or emptying the trash Used by askD...
Definition: jobuidelegate.h:109
QString
KIO::RenameDialog_Mode
RenameDialog_Mode
M_OVERWRITE: We have an existing dest, show details about it and offer to overwrite it...
Definition: renamedialog.h:56
renamedialog.h
KUrl::List
KIO::JobUiDelegate::Trash
Definition: jobuidelegate.h:109
KIO::JobUiDelegate::MessageBoxType
MessageBoxType
Message box types.
Definition: jobuidelegate.h:141
KIO::RenameDialog_Result
RenameDialog_Result
The result of open_RenameDialog().
Definition: renamedialog.h:61
skipdialog.h
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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