mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-15 19:55:53 +00:00
27 lines
561 B
C++
27 lines
561 B
C++
/*
|
|
SPDX-FileCopyrightText: 2015 Kai Uwe Broulik <kde@privat.broulik.de>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef TRASH_H
|
|
#define TRASH_H
|
|
|
|
#include <QObject>
|
|
|
|
class Trash : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Trash(QObject *parent = nullptr);
|
|
~Trash() override = default;
|
|
|
|
Q_INVOKABLE void trashUrls(const QList<QUrl> &urls);
|
|
Q_INVOKABLE void emptyTrash();
|
|
Q_INVOKABLE bool canBeTrashed(const QUrl &url) const;
|
|
Q_INVOKABLE QList<QUrl> trashableUrls(const QList<QUrl> &urls) const;
|
|
};
|
|
|
|
#endif // TRASH_H
|