blob: 388bc82ab4b775b452b70c4fab247e7ce5a1c3d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* SPDX-FileCopyrightText: 2012 Peter Penz <[email protected]>
* SPDX-FileCopyrightText: 2018 Roman Inflianskas <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef DOLPHINTRASH_H
#define DOLPHINTRASH_H
#include <QWidget>
#include <KDirLister>
#include <KIO/EmptyTrashJob>
class Trash : public QObject
{
Q_OBJECT
public:
// delete copy and move constructors and assign operators
Trash(Trash const &) = delete;
Trash(Trash &&) = delete;
Trash &operator=(Trash const &) = delete;
Trash &operator=(Trash &&) = delete;
static Trash &instance();
static void empty(QWidget *window);
static bool isEmpty();
Q_SIGNALS:
void emptinessChanged(bool isEmpty);
private:
KDirLister *m_trashDirLister;
Trash();
~Trash() override;
};
#endif // DOLPHINTRASH_H
|