KIO

emptytrashjob.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 EMPTYTRASHJOB_H
9 #define EMPTYTRASHJOB_H
10 
11 #include "kiocore_export.h"
12 #include "simplejob.h"
13 
14 namespace KIO
15 {
16 class EmptyTrashJobPrivate;
17 /**
18  * @class KIO::EmptyTrashJob emptytrashjob.h <KIO/EmptyTrashJob>
19  *
20  * A KIO job for emptying the trash
21  * @see KIO::trash()
22  * @see KIO::restoreFromTrash()
23  * @since 5.2
24  */
25 class KIOCORE_EXPORT EmptyTrashJob : public SimpleJob
26 {
27  Q_OBJECT
28 
29 public:
30  ~EmptyTrashJob() override;
31 
32 protected:
33  void slotFinished() override;
34 
35 private:
36  EmptyTrashJob(EmptyTrashJobPrivate &dd);
37 
38 private:
39  Q_DECLARE_PRIVATE(EmptyTrashJob)
40 };
41 
42 /**
43  * Empties the trash.
44  *
45  * @return A pointer to the job handling the operation.
46  * @since 5.2
47  */
48 KIOCORE_EXPORT EmptyTrashJob *emptyTrash();
49 
50 }
51 
52 #endif
KIOCORE_EXPORT EmptyTrashJob * emptyTrash()
Empties the trash.
A namespace for KIO globals.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 03:53:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.