/* * SPDX-FileCopyrightText: 2011 Peter Penz * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef KFILEITEMCLIPBOARD_H #define KFILEITEMCLIPBOARD_H #include "dolphin_export.h" #include #include #include #include /** * @brief Wrapper for QClipboard to provide fast access for checking * whether a KFileItem has been clipped. */ class DOLPHIN_EXPORT KFileItemClipboard : public QObject { Q_OBJECT public: static KFileItemClipboard *instance(); bool isCut(const QUrl &url) const; QList cutItems() const; Q_SIGNALS: void cutItemsChanged(); protected: ~KFileItemClipboard() override; private Q_SLOTS: void updateCutItems(); private: KFileItemClipboard(); QSet m_cutItems; friend class KFileItemClipboardSingleton; }; #endif