KIO

emptytrashjob.h
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 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 */
25class KIOCORE_EXPORT EmptyTrashJob : public SimpleJob
26{
27 Q_OBJECT
28
29public:
30 ~EmptyTrashJob() override;
31
32protected:
33 void slotFinished() override;
34
35private:
36 KIOCORE_NO_EXPORT explicit EmptyTrashJob(EmptyTrashJobPrivate &dd);
37
38private:
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 */
48KIOCORE_EXPORT EmptyTrashJob *emptyTrash();
49
50}
51
52#endif
A KIO job for emptying the trash.
A simple job (one url and one command).
Definition simplejob.h:27
A namespace for KIO globals.
KIOCORE_EXPORT EmptyTrashJob * emptyTrash()
Empties the trash.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.