27 #ifndef TRASHHANDLER_H
28 #define TRASHHANDLER_H
34 #include <QTextStream>
36 #include <QMessageBox>
89 static QString m_trashPath;
91 bool m_dialogShown =
false;
92 bool unmount(
const QString &absoluteFilePathWithSymlinksResolved)
const;
The TrashHandler class provides functionality to manage a "Trash" (virtual trash) for files and direc...
Definition: TrashHandler.h:54
static bool emptyTrash()
Empties the "Trash" by deleting all files and directories in the virtual trash.
Definition: TrashHandler.cpp:394
TrashHandler(QWidget *parent=nullptr)
Constructs a TrashHandler object.
Definition: TrashHandler.cpp:46
static bool isEmpty()
Checks if the "Trash" is empty.
Definition: TrashHandler.cpp:457
static QString getTrashPath()
Retrieves the path to the "Trash" directory.
Definition: TrashHandler.cpp:453
void moveToTrash(const QStringList &paths)
Moves files and directories to the "Trash" (virtual trash).
Definition: TrashHandler.cpp:63