mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
clipboardwriter.h File Reference

Clipboard integration with KDE-first and Qt fallback behavior. More...

#include <QClipboard>
#include <QObject>
#include <QString>

Go to the source code of this file.

Classes

class  ClipboardWriter
 Copies transcription text to the clipboard. More...
 

Functions

QString clipboardBackendName (bool hasSystemClipboard, bool hasQtClipboard)
 Reports the clipboard backend name from backend availability flags.
 
bool clipboardRoundTripSucceeded (const QString &requestedText, const QString &actualText)
 Reports whether a clipboard round-trip returned the requested text.
 

Detailed Description

Clipboard integration with KDE-first and Qt fallback behavior.

Definition in file clipboardwriter.h.

Function Documentation

◆ clipboardBackendName()

QString clipboardBackendName ( bool  hasSystemClipboard,
bool  hasQtClipboard 
)

Reports the clipboard backend name from backend availability flags.

Parameters
hasSystemClipboardWhether KDE system clipboard support is available.
hasQtClipboardWhether a Qt clipboard instance is available.
Returns
Human-readable backend identifier for diagnostics.

◆ clipboardRoundTripSucceeded()

bool clipboardRoundTripSucceeded ( const QString &  requestedText,
const QString &  actualText 
)

Reports whether a clipboard round-trip returned the requested text.

Parameters
requestedTextText the application attempted to write.
actualTextText read back from the clipboard backend.
Returns
true when the backend readback matches the requested text exactly.