/* SPDX-FileCopyrightText: 2015 Kai Uwe Broulik SPDX-License-Identifier: LGPL-2.0-or-later */ #pragma once #include #include #include class Trash : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON public: explicit Trash(QObject *parent = nullptr); ~Trash() override = default; Q_INVOKABLE void trashUrls(const QList &urls); Q_INVOKABLE void emptyTrash(); Q_INVOKABLE bool canBeTrashed(const QUrl &url) const; Q_INVOKABLE QList trashableUrls(const QList &urls) const; };