22auto buildClipboardMimeData(
const QString &text) -> QMimeData *;
29static inline auto dwordBytes(quint32 value) -> QByteArray {
30 return QByteArray(
reinterpret_cast<const char *
>(&value),
sizeof(value));
61 void setClippedText(
const QString &text,
const QString &p_output = QString());
90 QTimer clearClipboardTimer;
95 void connectPassSignalHandlers(
Pass *pass);
127 void processError(QProcess::ProcessError);
128 void processErrorExit(
int exitCode,
const QString &);
129 void processFinished(
const QString &,
const QString &);
131 void passStoreChanged(
const QString &,
const QString &);
132 void passShowHandlerFinished(QString output);
135 void finishedInsert(
const QString &,
const QString &);
136 void onKeyGenerationComplete(
const QString &p_output,
137 const QString &p_errout);
139 void showInTextBrowser(QString output,
const QString &prefix = QString(),
140 const QString &postfix = QString());
Main application window orchestrating UI, user interactions, and external process handlers.
Abstract base class for password store operations.
void clearClippedText()
Remove any stored clipped text value.
void setClipboardTimer()
Configure and start the clipboard-clear timer.
auto isFreshStart() -> bool
Return whether this instance is in a fresh-start state.
void setClippedText(const QString &text, const QString &p_output=QString())
Update the tracked clipped text value.
void clearClipboard()
Clear the system clipboard contents immediately.
void setFreshStart(const bool &fs)
Set the fresh-start state.
static QDialog * createQRCodePopup(const QPixmap &image)
Create a modal dialog configured to display the given QR code.
QtPass(MainWindow *mainWindow)
Construct a QtPass instance associated with the given main window.
void copyTextToClipboard(const QString &text)
Copy text into the system clipboard.
auto init() -> bool
Initialize internal state and signal connections.
void showTextAsQRCode(const QString &text)
Request display of text as a QR code in the UI.