6#include <PhosphorServiceClipboard/phosphorserviceclipboard_export.h>
8#include <QAbstractItemModel>
32 Q_PROPERTY(
bool supported READ
isSupported CONSTANT)
46 [[nodiscard]] QAbstractItemModel*
history()
const;
49 [[nodiscard]]
int count()
const;
57 Q_INVOKABLE
bool copy(
int index);
71 std::unique_ptr<Private> d;
int count() const
Number of entries in the history.
bool isSupported() const
Whether the compositor advertises the wlr-data-control protocol this service builds on.
void clear()
Clear the entire history (and disk).
~ClipboardService() override
ClipboardService(QObject *parent=nullptr)
QAbstractItemModel * history() const
The history list model (most-recent first). Owned by the service.
bool remove(int index)
Remove the entry at index from the history (and disk).
bool copy(int index)
Re-apply the entry at index to the clipboard selection.
Definition ClipboardService.h:13