KIO

restorejob.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2014 David Faure <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KIO_RESTOREJOB_H
9 #define KIO_RESTOREJOB_H
10 
11 #include <QObject>
12 #include <QUrl>
13 
14 #include "kiocore_export.h"
15 #include "job_base.h"
16 
17 namespace KIO
18 {
19 
20 class RestoreJobPrivate;
31 class KIOCORE_EXPORT RestoreJob : public Job
32 {
33  Q_OBJECT
34 
35 public:
36  ~RestoreJob() override;
37 
41  QList<QUrl> trashUrls() const;
42 
43 Q_SIGNALS:
44 
45 protected Q_SLOTS:
46  void slotResult(KJob *job) override;
47 
48 protected:
49  RestoreJob(RestoreJobPrivate &dd);
50 
51 private:
52  Q_PRIVATE_SLOT(d_func(), void slotStart())
53 
54  Q_DECLARE_PRIVATE(RestoreJob)
55 };
56 
69 KIOCORE_EXPORT RestoreJob *restoreFromTrash(const QList<QUrl> &urls, JobFlags flags = DefaultFlags);
70 
71 }
72 
73 #endif
A namespace for KIO globals.
Definition: authinfo.h:21
Show the progress info GUI, no Resume and no Overwrite.
Definition: job_base.h:270
The base class for all jobs.
Definition: job_base.h:45
KIOCORE_EXPORT RestoreJob * restoreFromTrash(const QList< QUrl > &urls, JobFlags flags=DefaultFlags)
Restore a set of trashed files or directories.
Definition: restorejob.cpp:99
RestoreJob is used to restore files from the trash.
Definition: restorejob.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 10 2020 23:04:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.