53 [[nodiscard]]
bool copy(
const QString &text);
67 [[nodiscard]]
bool copyWithSystemClipboard(
const QString &text);
74 [[nodiscard]]
bool copyWithQtClipboard(
const QString &text);
77 QClipboard *m_clipboard =
nullptr;
79 KSystemClipboard *m_systemClipboard =
nullptr;
Copies transcription text to the clipboard.
ClipboardWriter(QClipboard *clipboard, QObject *parent=nullptr)
Creates a clipboard writer bound to the application's clipboard.
bool copy(const QString &text)
Copies text to the best available clipboard backend.
QString backendName() const
Reports the active backend name for diagnostics.
bool clipboardRoundTripSucceeded(const QString &requestedText, const QString &actualText)
Reports whether a clipboard round-trip returned the requested text.
QString clipboardBackendName(bool hasSystemClipboard, bool hasQtClipboard)
Reports the clipboard backend name from backend availability flags.