1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2014 David Faure <faure@kde.org>
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
14namespace KIO
15{
16class EmptyTrashJobPrivate;
17/*!
18 * \class KIO::EmptyTrashJob
19 * \inheaderfile KIO/EmptyTrashJob
20 * \inmodule KIOCore
21 *
22 * A KIO job for emptying the trash
23 * \sa KIO::trash()
24 * \sa KIO::restoreFromTrash()
25 * \since 5.2
26 */
27class KIOCORE_EXPORT EmptyTrashJob : public SimpleJob
28{
29 Q_OBJECT
30
31public:
32 ~EmptyTrashJob() override;
33
34protected:
35 void slotFinished() override;
36
37private:
38 KIOCORE_NO_EXPORT explicit EmptyTrashJob(EmptyTrashJobPrivate &dd);
39
40private:
41 Q_DECLARE_PRIVATE(EmptyTrashJob)
42};
43
44/*!
45 * \relates KIO::EmptyTrashJob
46 *
47 * Empties the trash.
48 *
49 * Returns a pointer to the job handling the operation.
50 * \since 5.2
51 */
52KIOCORE_EXPORT EmptyTrashJob *emptyTrash();
53
54}
55
56#endif
57

source code of kio/src/core/emptytrashjob.h