2 * SPDX-FileCopyrightText: 2011 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef KFILEITEMCLIPBOARD_H
8 #define KFILEITEMCLIPBOARD_H
10 #include "dolphin_export.h"
18 * @brief Wrapper for QClipboard to provide fast access for checking
19 * whether a KFileItem has been clipped.
21 class DOLPHIN_EXPORT KFileItemClipboard
: public QObject
26 static KFileItemClipboard
* instance();
28 bool isCut(const QUrl
& url
) const;
30 QList
<QUrl
> cutItems() const;
33 void cutItemsChanged();
36 ~KFileItemClipboard() override
;
39 void updateCutItems();
44 QSet
<QUrl
> m_cutItems
;
46 friend class KFileItemClipboardSingleton
;